ReadableDataBlock

Trait ReadableDataBlock 

Source
pub trait ReadableDataBlock {
    // Required method
    fn read_data<R: Read>(&mut self, source: R) -> Result<()>;
}
Expand description

Traits for data blocks that can read in data.

Required Methods§

Source

fn read_data<R: Read>(&mut self, source: R) -> Result<()>

Read data into this block from a source, overwriting any existing data.

Unlike Java N5, read the stream directly into the block data instead of creating a copied byte buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§