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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Varints (LEB128) and zigzag: how numbers are written.
/// The low seven bits of a varint byte, and the bit saying more follow.
pub const VARINT_BITS: u64 = 0x7F;
pub const VARINT_MORE: u8 = 0x80;
pub const VARINT_SHIFT: u32 = 7;
/// `n` as a varint onto `out`.
pub
/// The low byte of `n`.
/// The bits a varint can hold.
pub const VARINT_MAX_SHIFT: u32 = 64;
/// The shift of a varint's tenth byte: the one bit left of 64.
pub const VARINT_LAST_SHIFT: u32 = 63;
/// The varint at `*i` in `b`, `*i` moved past it; `None` cut short or longer than 64 bits.
pub
/// `n` zigzagged: small negative numbers stay small varints.
pub
/// A zigzagged `z` back.
pub