Skip to main content

decode_deltas

Function decode_deltas 

Source
pub fn decode_deltas(bytes: &[u8]) -> Result<Vec<i64>>
Expand description

Decodes a batch encoded by encode_deltas.

§Arguments

  • bytes - the encoded batch.

§Returns

The decoded samples, in order.

§Errors

Returns Error::Codec if bytes ends part-way through a value, holds a value past 64 bits, or carries bytes after the last sample, which a batch cut short or run into another would.