Searched refs:MAX_STREAM_BUF_SIZE (Results 1 – 7 of 7) sorted by relevance
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
D | stream_buffer.rs | 33 const MAX_STREAM_BUF_SIZE: usize = 256; constant 67 sz_buff: [c_char; MAX_STREAM_BUF_SIZE + 1], 78 sz_buff: [0; MAX_STREAM_BUF_SIZE + 1], in default() 111 let size = MAX_STREAM_BUF_SIZE + 1; in clean() 159 if self.w_pos >= MAX_STREAM_BUF_SIZE { in get_available_buf_size() 162 MAX_STREAM_BUF_SIZE - self.w_pos in get_available_buf_size() 190 if (self.w_pos + size) > MAX_STREAM_BUF_SIZE { in write_char_usize() 192 self.w_pos, size, MAX_STREAM_BUF_SIZE, MEM_OUT_OF_BOUNDS); in write_char_usize()
|
/base/msdp/device_status/utils/ipc/src/ |
D | stream_buffer.cpp | 139 if (wPos_ + static_cast<int32_t>(size) > MAX_STREAM_BUF_SIZE) { in Write() 141 "errCode:%{public}d", wPos_, size, MAX_STREAM_BUF_SIZE, MEM_OUT_OF_BOUNDS); in Write() 173 return ((wPos_ >= MAX_STREAM_BUF_SIZE) ? 0 : (MAX_STREAM_BUF_SIZE - wPos_)); in GetAvailableBufSize()
|
/base/sensors/sensor/utils/ipc/src/ |
D | stream_buffer.cpp | 159 if (wPos_ + size > MAX_STREAM_BUF_SIZE) { in Write() 161 wPos_, size, MAX_STREAM_BUF_SIZE); in Write() 234 return ((wPos_ >= MAX_STREAM_BUF_SIZE) ? 0 : (MAX_STREAM_BUF_SIZE - wPos_)); in GetAvailableBufSize()
|
/base/sensors/sensor/utils/ipc/include/ |
D | proto.h | 28 static const size_t MAX_STREAM_BUF_SIZE = 256; variable
|
D | stream_buffer.h | 93 char szBuff_[MAX_STREAM_BUF_SIZE + 1] = {};
|
/base/msdp/device_status/utils/common/include/ |
D | proto.h | 25 static constexpr int32_t MAX_STREAM_BUF_SIZE { 256 };
|
/base/msdp/device_status/utils/ipc/include/ |
D | stream_buffer.h | 78 char szBuff_[MAX_STREAM_BUF_SIZE + 1] {};
|