pub trait DataRecorder { fn write(&mut self, buf: &[u8]) -> Result<usize, IoError>; fn write_all(&mut self, buf: &[u8]) -> Result<(), IoError> { ... } }
Writes given buffer to recorder. Returns count of written bytes or 0 if end of the destination asset was reached (e.g. buffer filled)
Writes all bytes to the destiantion or returns IoError::WriteZero if destination refused to accept more bytes