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

Method encodeUint16Cond

encode_number.go:27–32  ·  view source on GitHub ↗
(n uint16)

Source from the content-addressed store, hash-verified

25}
26
27func (e *Encoder) encodeUint16Cond(n uint16) error {
28 if e.flags&useCompactIntsFlag != 0 {
29 return e.EncodeUint(uint64(n))
30 }
31 return e.EncodeUint16(n)
32}
33
34// EncodeUint32 encodes an uint16 in 5 bytes preserving type of the number.
35func (e *Encoder) EncodeUint32(n uint32) error {

Callers 1

encodeUint16CondValueFunction · 0.80

Calls 2

EncodeUintMethod · 0.95
EncodeUint16Method · 0.95

Tested by

no test coverage detected