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

Method write2

encode_number.go:174–180  ·  view source on GitHub ↗
(code byte, n uint16)

Source from the content-addressed store, hash-verified

172}
173
174func (e *Encoder) write2(code byte, n uint16) error {
175 e.buf = e.buf[:3]
176 e.buf[0] = code
177 e.buf[1] = byte(n >> 8)
178 e.buf[2] = byte(n)
179 return e.write(e.buf)
180}
181
182func (e *Encoder) write4(code byte, n uint32) error {
183 e.buf = e.buf[:5]

Callers 8

EncodeMapLenMethod · 0.95
EncodeUint16Method · 0.95
EncodeInt16Method · 0.95
EncodeBytesLenMethod · 0.95
encodeStringLenMethod · 0.95
EncodeArrayLenMethod · 0.95
encodeExtLenMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected