MCPcopy Create free account
hub / github.com/buger/jsonparser / blockEnd

Function blockEnd

parser.go:369–371  ·  view source on GitHub ↗

SYS-REQ-046 Find end of the data structure, array or object. For array openSym and closeSym will be '[' and ']', for object '{' and '}'

(data []byte, openSym byte, closeSym byte)

Source from the content-addressed store, hash-verified

367// Find end of the data structure, array or object.
368// For array openSym and closeSym will be '[' and ']', for object '{' and '}'
369func blockEnd(data []byte, openSym byte, closeSym byte) int {
370 return blockEndConfig(DefaultConfig, data, openSym, closeSym)
371}
372
373// SYS-REQ-115
374func blockEndConfig(config Config, data []byte, openSym byte, closeSym byte) int {

Callers 4

EachKeyFunction · 0.85
EachKeyErrFunction · 0.85
TestBlockEndSentinelFunction · 0.85

Calls 1

blockEndConfigFunction · 0.85

Tested by 2

TestBlockEndSentinelFunction · 0.68