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

Function EncodeUint32Ascending

pkg/util/encoding/encoding.go:205–207  ·  view source on GitHub ↗

EncodeUint32Ascending encodes the uint32 value using a big-endian 4 byte representation. The bytes are appended to the supplied buffer and the final buffer is returned.

(b []byte, v uint32)

Source from the content-addressed store, hash-verified

203// representation. The bytes are appended to the supplied buffer and
204// the final buffer is returned.
205func EncodeUint32Ascending(b []byte, v uint32) []byte {
206 return append(b, byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
207}
208
209// PutUint32Ascending encodes the uint32 value using a big-endian 4 byte
210// representation at the specified index, lengthening the input slice if

Callers 10

EncodeFunction · 0.92
encodeMethod · 0.92
encodeMethod · 0.92
EncodeJSONFunction · 0.92
EncodeTSVectorFunction · 0.92
EncodeTSVectorPGBinaryFunction · 0.92
EncodeTSQueryFunction · 0.92
EncodeTSQueryPGBinaryFunction · 0.92
EncodeUint32DescendingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…