Lines Matching full:pub
19 pub type UserPtr = usize;
108 pub struct UserSlice {
126 pub fn new(ptr: UserPtr, length: usize) -> Self { in new()
133 pub fn read_all(self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all()
138 pub fn reader(self) -> UserSliceReader { in reader()
146 pub fn writer(self) -> UserSliceWriter { in writer()
156 pub fn reader_writer(self) -> (UserSliceReader, UserSliceWriter) { in reader_writer()
173 pub struct UserSliceReader {
182 pub fn skip(&mut self, num_skip: usize) -> Result { in skip()
195 pub fn clone_reader(&self) -> UserSliceReader { in clone_reader()
205 pub fn len(&self) -> usize { in len()
210 pub fn is_empty(&self) -> bool { in is_empty()
224 pub fn read_raw(&mut self, out: &mut [MaybeUninit<u8>]) -> Result { in read_raw()
249 pub fn read_slice(&mut self, out: &mut [u8]) -> Result { in read_slice()
260 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
294 pub fn read_all(mut self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all()
312 pub struct UserSliceWriter {
321 pub fn len(&self) -> usize { in len()
326 pub fn is_empty(&self) -> bool { in is_empty()
335 pub fn write_slice(&mut self, data: &[u8]) -> Result { in write_slice()
360 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write()