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

Function blockEnd

parser.go:350–352  ·  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

348// Find end of the data structure, array or object.
349// For array openSym and closeSym will be '[' and ']', for object '{' and '}'
350func blockEnd(data []byte, openSym byte, closeSym byte) int {
351 return blockEndConfig(DefaultConfig, data, openSym, closeSym)
352}
353
354// SYS-REQ-115
355func 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