MCPcopy Create free account
hub / github.com/pingcap/tidb / objectGetVal

Method objectGetVal

pkg/types/json_binary.go:301–304  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

299}
300
301func (bj BinaryJSON) objectGetVal(i int) BinaryJSON {
302 elemCount := bj.GetElemCount()
303 return bj.valEntryGet(headerSize + elemCount*keyEntrySize + i*valEntrySize)
304}
305
306func (bj BinaryJSON) valEntryGet(valEntryOff int) BinaryJSON {
307 tpCode := bj.Value[valEntryOff]

Callers 14

marshalObjToMethod · 0.95
HashValueMethod · 0.95
extractToMethod · 0.95
objectSearchKeyMethod · 0.95
GetElemDepthMethod · 0.95
extractToCallbackMethod · 0.95
WalkMethod · 0.95
doInsertMethod · 0.80
doRemoveMethod · 0.80
CompareBinaryJSONFunction · 0.80
mergePatchBinaryJSONFunction · 0.80
mergeBinaryObjectFunction · 0.80

Calls 2

GetElemCountMethod · 0.95
valEntryGetMethod · 0.95

Tested by

no test coverage detected