MCPcopy Create free account
hub / github.com/vmihailenco/msgpack / encodeUint32Cond

Method encodeUint32Cond

encode_number.go:39–44  ·  view source on GitHub ↗
(n uint32)

Source from the content-addressed store, hash-verified

37}
38
39func (e *Encoder) encodeUint32Cond(n uint32) error {
40 if e.flags&useCompactIntsFlag != 0 {
41 return e.EncodeUint(uint64(n))
42 }
43 return e.EncodeUint32(n)
44}
45
46// EncodeUint64 encodes an uint16 in 9 bytes preserving type of the number.
47func (e *Encoder) EncodeUint64(n uint64) error {

Callers 1

encodeUint32CondValueFunction · 0.80

Calls 2

EncodeUintMethod · 0.95
EncodeUint32Method · 0.95

Tested by

no test coverage detected