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

Method objectGetDataRange

postgres/parser/json/encoded.go:318–321  ·  view source on GitHub ↗

objectGetDataRange returns the [begin, end) subslice of the object's data.

(begin, end int)

Source from the content-addressed store, hash-verified

316
317// objectGetDataRange returns the [begin, end) subslice of the object's data.
318func (j *jsonEncoded) objectGetDataRange(begin, end int) []byte {
319 dataStart := containerHeaderLen + j.containerLen*jEntryLen*2
320 return j.value[dataStart+begin : dataStart+end]
321}
322
323// getNthEntryBounds returns the beginning, ending, and JEntry of the nth entry
324// in the container. If the container is an object, the i-th entry is the i-th

Callers 1

objectGetNthDataRangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected