Searched refs:bytes (Results 1 – 2 of 2) sorted by relevance
24 pub fn new(bytes: &Rc<RefCell<Vec<u8>>>) -> Self { in new()31 buf: Rc::clone(bytes), in new()50 pub fn insert(&mut self, bytes: &[u8]) { in insert()56 buf.splice(self.cursor..self.cursor, bytes.iter().cloned()); in insert()72 self.cursor += bytes.len(); in insert()
37 pub fn bytes(self) -> &'static [u8] { in bytes() method74 self.bytes() in into()