Trait sigma_ser::vlq_encode::ReadSigmaVlqExt[][src]

pub trait ReadSigmaVlqExt: Read {
    fn get_i8(&mut self) -> Result<i8, Error> { ... }
fn get_u8(&mut self) -> Result<u8, Error> { ... }
fn get_i16(&mut self) -> Result<i16, VlqEncodingError> { ... }
fn get_u16(&mut self) -> Result<u16, VlqEncodingError> { ... }
fn get_i32(&mut self) -> Result<i32, VlqEncodingError> { ... }
fn get_u32(&mut self) -> Result<u32, VlqEncodingError> { ... }
fn get_i64(&mut self) -> Result<i64, VlqEncodingError> { ... }
fn get_u64(&mut self) -> Result<u64, VlqEncodingError> { ... }
fn get_bits(&mut self, size: usize) -> Result<Vec<bool>, VlqEncodingError> { ... } }
Expand description

Read and decode values using VLQ (+ ZigZag for signed values) encoded and written with WriteSigmaVlqExt for VLQ see [[https://en.wikipedia.org/wiki/Variable-length_quantity]] for ZigZag see https://developers.google.com/protocol-buffers/docs/encoding#types

Provided methods

fn get_i8(&mut self) -> Result<i8, Error>[src]

Read i8 without decoding

fn get_u8(&mut self) -> Result<u8, Error>[src]

Read u8 without decoding

fn get_i16(&mut self) -> Result<i16, VlqEncodingError>[src]

Read and decode using VLQ and ZigZag value written with WriteSigmaVlqExt::put_i16

fn get_u16(&mut self) -> Result<u16, VlqEncodingError>[src]

Read and decode using VLQ value written with WriteSigmaVlqExt::put_u16

fn get_i32(&mut self) -> Result<i32, VlqEncodingError>[src]

Read and decode using VLQ and ZigZag value written with WriteSigmaVlqExt::put_i32

fn get_u32(&mut self) -> Result<u32, VlqEncodingError>[src]

Read and decode using VLQ value written with WriteSigmaVlqExt::put_u32

fn get_i64(&mut self) -> Result<i64, VlqEncodingError>[src]

Read and decode using VLQ and ZigZag value written with WriteSigmaVlqExt::put_i64

fn get_u64(&mut self) -> Result<u64, VlqEncodingError>[src]

Read and decode using VLQ value written with WriteSigmaVlqExt::put_u64

fn get_bits(&mut self, size: usize) -> Result<Vec<bool>, VlqEncodingError>[src]

Read a vector of bits with the given size

Implementors

impl<R: Read + ?Sized> ReadSigmaVlqExt for R[src]

Mark all types implementing Read as implementing the extension.