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

Method EncodeInt64

encode_number.go:95–97  ·  view source on GitHub ↗

EncodeInt64 encodes an int64 in 9 bytes preserving type of the number.

(n int64)

Source from the content-addressed store, hash-verified

93
94// EncodeInt64 encodes an int64 in 9 bytes preserving type of the number.
95func (e *Encoder) EncodeInt64(n int64) error {
96 return e.write8(msgpcode.Int64, uint64(n))
97}
98
99func (e *Encoder) encodeInt64Cond(n int64) error {
100 if e.flags&useCompactIntsFlag != 0 {

Callers 2

encodeInt64CondMethod · 0.95
EncodeIntMethod · 0.95

Calls 1

write8Method · 0.95

Tested by

no test coverage detected