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

Method objectGetKey

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

Source from the content-addressed store, hash-verified

293}
294
295func (bj BinaryJSON) objectGetKey(i int) []byte {
296 keyOff := int(jsonEndian.Uint32(bj.Value[headerSize+i*keyEntrySize:]))
297 keyLen := int(jsonEndian.Uint16(bj.Value[headerSize+i*keyEntrySize+keyLenOff:]))
298 return bj.Value[keyOff : keyOff+keyLen]
299}
300
301func (bj BinaryJSON) objectGetVal(i int) BinaryJSON {
302 elemCount := bj.GetElemCount()

Callers 13

GetKeysMethod · 0.95
marshalObjToMethod · 0.95
HashValueMethod · 0.95
objectSearchKeyMethod · 0.95
extractToCallbackMethod · 0.95
WalkMethod · 0.95
doInsertMethod · 0.80
doRemoveMethod · 0.80
CompareBinaryJSONFunction · 0.80
mergePatchBinaryJSONFunction · 0.80
mergeBinaryObjectFunction · 0.80
ContainsBinaryJSONFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected