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

Method EncodeUint32

encode_number.go:35–37  ·  view source on GitHub ↗

EncodeUint32 encodes an uint16 in 5 bytes preserving type of the number.

(n uint32)

Source from the content-addressed store, hash-verified

33
34// EncodeUint32 encodes an uint16 in 5 bytes preserving type of the number.
35func (e *Encoder) EncodeUint32(n uint32) error {
36 return e.write4(msgpcode.Uint32, n)
37}
38
39func (e *Encoder) encodeUint32Cond(n uint32) error {
40 if e.flags&useCompactIntsFlag != 0 {

Callers 2

encodeUint32CondMethod · 0.95
EncodeUintMethod · 0.95

Calls 1

write4Method · 0.95

Tested by

no test coverage detected