(dst []byte, u64 uint64)
| 21 | } |
| 22 | |
| 23 | func EncodeCountedUvarint(dst []byte, u64 uint64) uint { |
| 24 | var n uint |
| 25 | for u64 != 0 { |
| 26 | dst[n] = byte(u64) |
| 27 | u64 >>= 8 |
| 28 | n++ |
| 29 | } |
| 30 | return n |
| 31 | } |
| 32 | |
| 33 | func AppendCountedUvarint(dst []byte, u64 uint64) []byte { |
| 34 | for u64 != 0 { |
no outgoing calls
no test coverage detected