MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / EncodeUint64

Method EncodeUint64

encode_number.go:47–49  ·  view source on GitHub ↗

EncodeUint64 encodes an uint16 in 9 bytes preserving type of the number.

(n uint64)

Source from the content-addressed store, hash-verified

45
46// EncodeUint64 encodes an uint16 in 9 bytes preserving type of the number.
47func (e *Encoder) EncodeUint64(n uint64) error {
48 return e.write8(msgpcode.Uint64, n)
49}
50
51func (e *Encoder) encodeUint64Cond(n uint64) error {
52 if e.flags&useCompactIntsFlag != 0 {

Callers 2

encodeUint64CondMethod · 0.95
EncodeUintMethod · 0.95

Calls 1

write8Method · 0.95

Tested by

no test coverage detected