1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#![cfg_attr(feature = "nightly", feature(test))]
extern crate bit_utils;
mod zigzag;
pub use zigzag::ZigZag;
mod rawio;
pub use rawio::VarintRead as VarintRead;
pub use rawio::VarintWrite as VarintWrite;
#[cfg(feature = "io-operations")]
extern crate io_operations;
#[cfg(feature = "io-operations")]
mod iooperations;
#[cfg(feature = "io-operations")]
pub use iooperations::VarintReader as VarintReader;
#[cfg(feature = "io-operations")]
pub use iooperations::VarintWriter as VarintWriter;
pub const VARINT_32_MAX_BYTES: usize = 5;
pub const VARINT_64_MAX_BYTES: usize = 10;