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

Function getUint32At

postgres/parser/json/encoded.go:170–180  ·  view source on GitHub ↗
(v []byte, idx int)

Source from the content-addressed store, hash-verified

168}
169
170func getUint32At(v []byte, idx int) (uint32, error) {
171 if idx+4 > len(v) {
172 return 0, errors.AssertionFailedf(
173 "insufficient bytes to decode uint32 int value: %+v", v)
174 }
175
176 return uint32(v[idx])<<24 |
177 uint32(v[idx+1])<<16 |
178 uint32(v[idx+2])<<8 |
179 uint32(v[idx+3]), nil
180}
181
182type encodedArrayIterator struct {
183 curDataIdx int

Callers 5

newEncodedFromRootFunction · 0.85
jsonTypeFromRootBufferFunction · 0.85
newEncodedFunction · 0.85
beginningOfIdxMethod · 0.85
getJEntryAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected