MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncodeUint16Ascending

Function EncodeUint16Ascending

pkg/util/encoding/encoding.go:186–188  ·  view source on GitHub ↗

EncodeUint16Ascending encodes the uint16 value using a big-endian 2 byte representation. The bytes are appended to the supplied buffer and the final buffer is returned.

(b []byte, v uint16)

Source from the content-addressed store, hash-verified

184// representation. The bytes are appended to the supplied buffer and
185// the final buffer is returned.
186func EncodeUint16Ascending(b []byte, v uint16) []byte {
187 return append(b, byte(v>>8), byte(v))
188}
189
190// PutUint16Ascending encodes the uint16 value using a big-endian 2 byte
191// representation at the specified index, lengthening the input slice if

Callers 4

EncodeTSVectorFunction · 0.92
EncodeTSVectorPGBinaryFunction · 0.92
encodeTSNodeMethod · 0.92
encodeTSNodePGBinaryMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…