Searched refs:MAX_STREAM_BUF_SIZE (Results 1 - 7 of 7) sorted by relevance
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
H A D | stream_buffer.rs | 33 const MAX_STREAM_BUF_SIZE: usize = 256; consts 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() 192 if (self.w_pos + size) > MAX_STREAM_BUF_SIZE { in write_char_usize() 194 self.w_pos, size, MAX_STREAM_BUF_SIZE, MEM_OUT_OF_BOUNDS); in write_char_usize()
|
/base/msdp/device_status/utils/common/include/ |
H A D | proto.h | 28 inline constexpr int32_t MAX_STREAM_BUF_SIZE { 1024 }; 29 inline constexpr size_t MAX_PACKET_BUF_SIZE { MAX_STREAM_BUF_SIZE };
|
/base/msdp/device_status/utils/ipc/src/ |
H A D | stream_buffer.cpp | 140 if (wPos_ + static_cast<int32_t>(size) > MAX_STREAM_BUF_SIZE) {
in Write() 142 "errCode:%{public}d", wPos_, size, MAX_STREAM_BUF_SIZE, MEM_OUT_OF_BOUNDS);
in Write() 179 return ((wPos_ >= MAX_STREAM_BUF_SIZE) ? 0 : (MAX_STREAM_BUF_SIZE - wPos_));
in GetAvailableBufSize()
|
/base/sensors/sensor/utils/ipc/src/ |
H A 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/ |
H A D | proto.h | 28 static constexpr size_t MAX_STREAM_BUF_SIZE = 256; member
|
H A D | stream_buffer.h | 95 char szBuff_[MAX_STREAM_BUF_SIZE + 1] = {};
|
/base/msdp/device_status/utils/ipc/include/ |
H A D | stream_buffer.h | 81 char szBuff_[MAX_STREAM_BUF_SIZE + 1] {};
|
Completed in 4 milliseconds