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

Method encodeUint64Cond

encode_number.go:51–56  ·  view source on GitHub ↗
(n uint64)

Source from the content-addressed store, hash-verified

49}
50
51func (e *Encoder) encodeUint64Cond(n uint64) error {
52 if e.flags&useCompactIntsFlag != 0 {
53 return e.EncodeUint(n)
54 }
55 return e.EncodeUint64(n)
56}
57
58// EncodeInt8 encodes an int8 in 2 bytes preserving type of the number.
59func (e *Encoder) EncodeInt8(n int8) error {

Callers 2

EncodeMethod · 0.95
encodeUint64CondValueFunction · 0.80

Calls 2

EncodeUintMethod · 0.95
EncodeUint64Method · 0.95

Tested by

no test coverage detected