fn write_any(&mut self, reader: &mut impl io::Read, addr: u16) -> Result<(), io::Error> {
        // there's probably a considerably slicker way of figuring out the
        // length of what we're reading
        let mut buf = Vec::new();
        let len = reader.read_to_end(&mut buf)?;
        self.write(buf.as_slice(), addr, len)
    }
/// write unknown len of data into memory at a particular address
write unknown len of data into memory at a particular address
write unknown len of data into memory at a particular address
fn write_any(&mut self, reader: &mut impl io::Read, addr: u16) -> Result<(), io::Error> {
        // there's probably a considerably slicker way of figuring out the
        // length of what we're reading
        let mut buf = Vec::new();
        let len = reader.read_to_end(&mut buf)?;
        self.write(buf.as_slice(), addr, len)
    }
fn write_any ( & mut self , reader : & mut impl io :: Read , addr : u16 ) -> Result < ( ) , io :: Error > { // there's probably a considerably slicker way of figuring out the // length of what we're reading let mut buf = Vec :: new ( ) ; let len = reader . read_to_end ( & mut buf ) ? ; self . write ( buf . as_slice ( ) , addr , len ) }
write unknown len of data into memory at a particular address
write unknown len of data into memory at a particular address
&mut self
reader
&mut impl io::Read
addr
u16