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

Method EncodeUint16

encode_number.go:23–25  ·  view source on GitHub ↗

EncodeUint16 encodes an uint16 in 3 bytes preserving type of the number.

(n uint16)

Source from the content-addressed store, hash-verified

21
22// EncodeUint16 encodes an uint16 in 3 bytes preserving type of the number.
23func (e *Encoder) EncodeUint16(n uint16) error {
24 return e.write2(msgpcode.Uint16, n)
25}
26
27func (e *Encoder) encodeUint16Cond(n uint16) error {
28 if e.flags&useCompactIntsFlag != 0 {

Callers 2

encodeUint16CondMethod · 0.95
EncodeUintMethod · 0.95

Calls 1

write2Method · 0.95

Tested by

no test coverage detected