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

Method encodeInt8Cond

encode_number.go:63–68  ·  view source on GitHub ↗
(n int8)

Source from the content-addressed store, hash-verified

61}
62
63func (e *Encoder) encodeInt8Cond(n int8) error {
64 if e.flags&useCompactIntsFlag != 0 {
65 return e.EncodeInt(int64(n))
66 }
67 return e.EncodeInt8(n)
68}
69
70// EncodeInt16 encodes an int16 in 3 bytes preserving type of the number.
71func (e *Encoder) EncodeInt16(n int16) error {

Callers 1

encodeInt8CondValueFunction · 0.80

Calls 2

EncodeIntMethod · 0.95
EncodeInt8Method · 0.95

Tested by

no test coverage detected