pub fn load(&mut self, xs: &mut Vec<u8>) {
        let buf = self.reader.get_mut();
        buf.clear();
        buf.append(xs);
        self.reader.set_position(0)
    }
/// Loads the console read buffer with some bytes
///
/// # Examples
///
/// ```
/// use j1::console::Console;
///
/// let mut console = Console::new();
/// let xs = b"1 2 + .\n".to_vec();
/// console.load(&mut xs.clone());
/// let ys = console.reader.get_ref();
/// assert_eq!(xs.len(), ys.len());
/// assert_eq!(xs, *ys);
///
/// ```
Loads the console read buffer with some bytes
Loads the console read buffer with some bytes
pub fn load(&mut self, xs: &mut Vec<u8>) {
        let buf = self.reader.get_mut();
        buf.clear();
        buf.append(xs);
        self.reader.set_position(0)
    }
pub fn load ( & mut self , xs : & mut Vec < u8 > ) { let buf = self . reader . get_mut ( ) ; buf . clear ( ) ; buf . append ( xs ) ; self . reader . set_position ( 0 ) }
Loads the console read buffer with some bytes
Loads the console read buffer with some bytes
&mut self
xs
&mut Vec<u8>
&mut self
xs
&mut Vec<u8>
examples
```
use j1::console::Console.

let mut console = Console::new();
let xs = b"1 2 + .\n".to_vec();
console.load(&mut xs.clone());
let ys = console.reader.get_ref();
assert_eq!(xs.len(), ys.len());
assert_eq!(xs, *ys).


` ` ` use j1 :: console :: Console . let mut console = Console :: new () ; let xs = b " 1 2 + . \ n " . to_vec () ; console . load ( &mut xs . clone () ) ; let ys = console . reader . get_ref () ; assert_eq! ( xs . len () ys . len () ) ; assert_eq! ( xs * ys ) .