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

Method write1

encode_number.go:167–172  ·  view source on GitHub ↗
(code byte, n uint8)

Source from the content-addressed store, hash-verified

165}
166
167func (e *Encoder) write1(code byte, n uint8) error {
168 e.buf = e.buf[:2]
169 e.buf[0] = code
170 e.buf[1] = n
171 return e.write(e.buf)
172}
173
174func (e *Encoder) write2(code byte, n uint16) error {
175 e.buf = e.buf[:3]

Callers 6

EncodeUint8Method · 0.95
EncodeInt8Method · 0.95
EncodeBytesLenMethod · 0.95
encodeStringLenMethod · 0.95
encodeExtLenMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected