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

Method encodeInt32Cond

encode_number.go:87–92  ·  view source on GitHub ↗
(n int32)

Source from the content-addressed store, hash-verified

85}
86
87func (e *Encoder) encodeInt32Cond(n int32) error {
88 if e.flags&useCompactIntsFlag != 0 {
89 return e.EncodeInt(int64(n))
90 }
91 return e.EncodeInt32(n)
92}
93
94// EncodeInt64 encodes an int64 in 9 bytes preserving type of the number.
95func (e *Encoder) EncodeInt64(n int64) error {

Callers 1

encodeInt32CondValueFunction · 0.80

Calls 2

EncodeIntMethod · 0.95
EncodeInt32Method · 0.95

Tested by

no test coverage detected