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

Function EncodeJSONStringKeyMarker

pkg/util/encoding/encoding.go:3537–3546  ·  view source on GitHub ↗

EncodeJSONStringKeyMarker adds a JSON String key encoding marker to buf and returns the new buffer.

(buf []byte, dir Direction)

Source from the content-addressed store, hash-verified

3535// EncodeJSONStringKeyMarker adds a JSON String key encoding marker
3536// to buf and returns the new buffer.
3537func EncodeJSONStringKeyMarker(buf []byte, dir Direction) []byte {
3538 switch dir {
3539 case Ascending:
3540 return append(buf, jsonStringKeyMarker)
3541 case Descending:
3542 return append(buf, jsonStringKeyDescendingMarker)
3543 default:
3544 panic("invalid direction")
3545 }
3546}
3547
3548// EncodeJSONNumberKeyMarker adds a JSON Number key encoding marker
3549// to buf and returns the new buffer.

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…