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

Method write8

encode_number.go:192–204  ·  view source on GitHub ↗
(code byte, n uint64)

Source from the content-addressed store, hash-verified

190}
191
192func (e *Encoder) write8(code byte, n uint64) error {
193 e.buf = e.buf[:9]
194 e.buf[0] = code
195 e.buf[1] = byte(n >> 56)
196 e.buf[2] = byte(n >> 48)
197 e.buf[3] = byte(n >> 40)
198 e.buf[4] = byte(n >> 32)
199 e.buf[5] = byte(n >> 24)
200 e.buf[6] = byte(n >> 16)
201 e.buf[7] = byte(n >> 8)
202 e.buf[8] = byte(n)
203 return e.write(e.buf)
204}
205
206func encodeUintValue(e *Encoder, v reflect.Value) error {
207 return e.EncodeUint(v.Uint())

Callers 3

EncodeUint64Method · 0.95
EncodeInt64Method · 0.95
EncodeFloat64Method · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected