Trait rustzx_core::host::DataRecorder[][src]

pub trait DataRecorder {
    fn write(&mut self, buf: &[u8]) -> Result<usize, IoError>;

    fn write_all(&mut self, buf: &[u8]) -> Result<(), IoError> { ... }
}

Required methods

Writes given buffer to recorder. Returns count of written bytes or 0 if end of the destination asset was reached (e.g. buffer filled)

Provided methods

Writes all bytes to the destiantion or returns IoError::WriteZero if destination refused to accept more bytes

Implementors