MCPcopy Create free account
hub / github.com/dolthub/doltgresql / EncodeUint32Ascending

Function EncodeUint32Ascending

postgres/parser/encoding/encoding.go:134–136  ·  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

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

Callers 3

encodeMethod · 0.92
encodeMethod · 0.92
EncodeJSONFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected