Home
last modified time | relevance | path

Searched refs:r_pos (Results 1 – 2 of 2) sorted by relevance

/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/
Dstream_buffer.rs65 r_pos: usize, field
76 r_pos: 0, in default()
103 self.r_pos = 0; in reset()
123 let pos: usize = self.r_pos + n; in seek_read_pos()
129 self.r_pos = pos; in seek_read_pos()
134 if self.w_pos <= self.r_pos { in unread_size()
137 self.w_pos - self.r_pos in unread_size()
141 self.r_pos == self.w_pos in is_empty()
174 &(self.sz_buff[self.r_pos]) as *const c_char in read_buf()
214 if buffer_size > avail_size && self.r_pos > 0 { in check_write()
[all …]
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/stream_buffer/
Dffi.rs340 obj.r_pos() as i32 in StreamBufferGetRpos()
381 pub unsafe extern "C" fn StreamBufferSetRpos(object: *mut StreamBuffer, r_pos: i32) -> i32 { in StreamBufferSetRpos()
383 obj.set_r_pos(r_pos as usize); in StreamBufferSetRpos()