Lines Matching refs:bit
7 // This file implements "varint" encoding of 64-bit integers.
11 // - the most significant bit (msb) in each output byte indicates if there
16 // and whether to complement is encoded in bit 0.
19 // At most 10 bytes are needed for 64-bit values. The encoding could
20 // be more dense: a full 64-bit value needs an extra byte just to hold bit 63.
21 // Instead, the msb of the previous byte could be used to hold bit 63 since we
24 // invariant that the msb is always the "continuation bit" and thus makes the
25 // format incompatible with a varint encoding for larger numbers (say 128-bit).
32 // MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
103 var overflow = errors.New("binary: varint overflows a 64-bit integer")