MCPcopy Create free account
hub / github.com/araddon/qlbridge / encodeFixed64Node

Function encodeFixed64Node

expr/node.pb.go:911–921  ·  view source on GitHub ↗
(data []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

909}
910
911func encodeFixed64Node(data []byte, offset int, v uint64) int {
912 data[offset] = uint8(v)
913 data[offset+1] = uint8(v >> 8)
914 data[offset+2] = uint8(v >> 16)
915 data[offset+3] = uint8(v >> 24)
916 data[offset+4] = uint8(v >> 32)
917 data[offset+5] = uint8(v >> 40)
918 data[offset+6] = uint8(v >> 48)
919 data[offset+7] = uint8(v >> 56)
920 return offset + 8
921}
922func encodeFixed32Node(data []byte, offset int, v uint32) int {
923 data[offset] = uint8(v)
924 data[offset+1] = uint8(v >> 8)

Callers 2

MarshalToMethod · 0.85
MarshalToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected