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

Function EncodeJSONKeyTerminator

pkg/util/encoding/encoding.go:3608–3617  ·  view source on GitHub ↗

EncodeJSONKeyTerminator adds a JSON Key terminator to buf and returns the buffer.

(buf []byte, dir Direction)

Source from the content-addressed store, hash-verified

3606// EncodeJSONKeyTerminator adds a JSON Key terminator
3607// to buf and returns the buffer.
3608func EncodeJSONKeyTerminator(buf []byte, dir Direction) []byte {
3609 switch dir {
3610 case Ascending:
3611 return append(buf, jsonKeyTerminator)
3612 case Descending:
3613 return append(buf, jsonKeyDescendingTerminator)
3614 default:
3615 panic("invalid direction")
3616 }
3617}
3618
3619// EncodeJSONObjectKeyMarker adds a JSON Object key encoding marker
3620// to buf and returns the new buffer.

Callers 4

EncodeForwardIndexMethod · 0.92
EncodeForwardIndexMethod · 0.92
EncodeForwardIndexMethod · 0.92
EncodeForwardIndexMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…