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

Function EncodeJSONObjectKeyMarker

pkg/util/encoding/encoding.go:3621–3630  ·  view source on GitHub ↗

EncodeJSONObjectKeyMarker adds a JSON Object key encoding marker to buf and returns the new buffer.

(buf []byte, dir Direction)

Source from the content-addressed store, hash-verified

3619// EncodeJSONObjectKeyMarker adds a JSON Object key encoding marker
3620// to buf and returns the new buffer.
3621func EncodeJSONObjectKeyMarker(buf []byte, dir Direction) []byte {
3622 switch dir {
3623 case Ascending:
3624 return append(buf, jsonObjectKeyMarker)
3625 case Descending:
3626 return append(buf, jsonObjectKeyDescendingMarker)
3627 default:
3628 panic("invalid direction")
3629 }
3630}
3631
3632func EncodeJSONValueLength(buf []byte, dir Direction, v int64) []byte {
3633 switch dir {

Callers 1

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…