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

Method encodeInt16Cond

encode_number.go:75–80  ·  view source on GitHub ↗
(n int16)

Source from the content-addressed store, hash-verified

73}
74
75func (e *Encoder) encodeInt16Cond(n int16) error {
76 if e.flags&useCompactIntsFlag != 0 {
77 return e.EncodeInt(int64(n))
78 }
79 return e.EncodeInt16(n)
80}
81
82// EncodeInt32 encodes an int32 in 5 bytes preserving type of the number.
83func (e *Encoder) EncodeInt32(n int32) error {

Callers 1

encodeInt16CondValueFunction · 0.80

Calls 2

EncodeIntMethod · 0.95
EncodeInt16Method · 0.95

Tested by

no test coverage detected