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
//! Support for encoding signed integers as `vint64`.
use crate::;
/// Encode a signed integer as a zigzag-encoded `vint64`.
/// Decode a zigzag-encoded `vint64` as a signed integer.
/// Get the length of a zigzag encoded `vint64` for the given value in bytes.
/// Zigzag encoding for signed integers.
///
/// This module contains the raw zigzag encoding algorithm.
///
/// For encoding signed integers as `vint64`, use the functions located in
/// the parent [`vint64::signed`](../index.html) module.