Home
last modified time | relevance | path

Searched refs:MAX_STREAM_BUF_SIZE (Results 1 – 7 of 7) sorted by relevance

/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
Dstream_buffer.rs33 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/
Dstream_buffer.cpp139 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/
Dstream_buffer.cpp159 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/
Dproto.h28 static const size_t MAX_STREAM_BUF_SIZE = 256; variable
Dstream_buffer.h93 char szBuff_[MAX_STREAM_BUF_SIZE + 1] = {};
/base/msdp/device_status/utils/common/include/
Dproto.h25 static constexpr int32_t MAX_STREAM_BUF_SIZE { 256 };
/base/msdp/device_status/utils/ipc/include/
Dstream_buffer.h78 char szBuff_[MAX_STREAM_BUF_SIZE + 1] {};