MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / EncodeInt64

Method EncodeInt64

thrift/binary.go:2125–2127  ·  view source on GitHub ↗

EncodeInt64 encodes a int64 value.

(b []byte, v int64)

Source from the content-addressed store, hash-verified

2123
2124// EncodeInt64 encodes a int64 value.
2125func (BinaryEncoding) EncodeInt64(b []byte, v int64) {
2126 binary.BigEndian.PutUint64(b, uint64(v))
2127}
2128
2129func (BinaryEncoding) EncodeDouble(b []byte, v float64) {
2130 binary.BigEndian.PutUint64(b, math.Float64bits(v))

Callers 3

EncodeEmptyMethod · 0.95
NewNodeInt64Function · 0.45
ToRawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected