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

Method encodeInt64Cond

encode_number.go:99–104  ·  view source on GitHub ↗
(n int64)

Source from the content-addressed store, hash-verified

97}
98
99func (e *Encoder) encodeInt64Cond(n int64) error {
100 if e.flags&useCompactIntsFlag != 0 {
101 return e.EncodeInt(n)
102 }
103 return e.EncodeInt64(n)
104}
105
106// EncodeUnsignedNumber encodes an uint64 in 1, 2, 3, 5, or 9 bytes.
107// Type of the number is lost during encoding.

Callers 2

EncodeMethod · 0.95
encodeInt64CondValueFunction · 0.80

Calls 2

EncodeIntMethod · 0.95
EncodeInt64Method · 0.95

Tested by

no test coverage detected