pub trait XboxADPCMEncodeSink {
    type Error: Sized;

    fn write(&mut self, bytes: &[u8]) -> Result<(), Self::Error>;

    fn reserve(&mut self, bytes_amount: usize) -> Result<(), Self::Error> { ... }
}
Expand description

Writer outputting ADPCM blocks.

This is automatically implemented for Vec<u8> if the "std" feature is enabled (which it is by default).

Required Associated Types

Required Methods

Write the bytes to the end of the output.

Implementing this is required.

Provided Methods

Reserve an amount of bytes at the end of the output.

Implementing this is optional, but it can be used to hint the amount of bytes to be written for allocations such as for memory-based buffers.

Implementations on Foreign Types

Implementors