MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / IsArrayKeyDone

Function IsArrayKeyDone

pkg/util/encoding/encoding.go:3751–3757  ·  view source on GitHub ↗

IsArrayKeyDone returns if the first byte in the input is the array terminator for the input direction.

(buf []byte, dir Direction)

Source from the content-addressed store, hash-verified

3749// IsArrayKeyDone returns if the first byte in the input is the array
3750// terminator for the input direction.
3751func IsArrayKeyDone(buf []byte, dir Direction) bool {
3752 expected := arrayKeyTerminator
3753 if dir == Descending {
3754 expected = arrayKeyDescendingTerminator
3755 }
3756 return buf[0] == expected
3757}
3758
3759// isJSONKeyDone returns if the first byte in the input is the JSON
3760// terminator for the input direction.

Callers 1

prettyPrintFirstValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…