Trait skullrump::BinaryChunkStream [] [src]

pub trait BinaryChunkStream: Write {
    fn stream_in<T: BinaryEntry>(
        &mut self,
        direction: StreamFlow,
        until_entry: i64
    ) -> Result<Vec<T>>; fn entry_write<T: BinaryEntry>(
        &mut self,
        buffer_out: &mut Vec<u8>,
        data_in: T
    ) -> Result<()> { ... }
fn tail<T: BinaryEntry>(&mut self, until_entry: i64) -> Result<Vec<T>> { ... }
fn head<T: BinaryEntry>(&mut self, until_entry: i64) -> Result<Vec<T>> { ... } }

A "stream" of incoming binary entries.

Required Methods

Specify the reading direction and number of entries to read, and return the list of entries.

Provided Methods

Write a new binary entry from an output buffer to a file.

Read from the end of the file until_entry is reached.

Read from the start of the file until_entry is reached.

Implementations on Foreign Types

impl BinaryChunkStream for File
[src]

[src]

[src]

[src]

[src]

Implementors