The streaming contract of byte-stream codecs: step through input chunks into bounded output slices, with bounded memory.
Dependencies
pub(open) trait Decode {
fn step(Self, BytesView, MutArrayView[Byte], end~ : Bool) -> Status raise CodecError
fn last_consumed(Self) -> Int
fn last_produced(Self) -> Int
fn reset(Self) -> Unit
fn memory_usage(Self) -> Int
}pub(open) trait Encode {
fn step(Self, BytesView, MutArrayView[Byte], action~ : EncodeAction) -> Status raise CodecError
fn last_consumed(Self) -> Int
fn last_produced(Self) -> Int
fn reset(Self) -> Unit
fn memory_usage(Self) -> Int
}Install
Download zipThe streaming contract of byte-stream codecs: step through input chunks into bounded output slices, with bounded memory.
Dependencies