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

Method objectGetDataRange

pkg/util/json/encoded.go:304–307  ·  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

302
303// objectGetDataRange returns the [begin, end) subslice of the object's data.
304func (j *jsonEncoded) objectGetDataRange(begin, end int) []byte {
305 dataStart := containerHeaderLen + j.containerLen*jEntryLen*2
306 return j.value[dataStart+begin : dataStart+end]
307}
308
309// getNthEntryBounds returns the beginning, ending, and JEntry of the nth entry
310// 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