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

Function EncodeUint32Ascending

pkg/util/encoding/encoding.go:138–140  ·  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

136// representation. The bytes are appended to the supplied buffer and
137// the final buffer is returned.
138func EncodeUint32Ascending(b []byte, v uint32) []byte {
139 return append(b, byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
140}
141
142// PutUint32Ascending encodes the uint32 value using a big-endian 4 byte
143// representation at the specified index, lengthening the input slice if

Callers 4

encodeMethod · 0.92
encodeMethod · 0.92
EncodeJSONFunction · 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…