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

Function EncodeJSONNumberKeyMarker

pkg/util/encoding/encoding.go:3550–3559  ·  view source on GitHub ↗

EncodeJSONNumberKeyMarker adds a JSON Number key encoding marker to buf and returns the new buffer.

(buf []byte, dir Direction)

Source from the content-addressed store, hash-verified

3548// EncodeJSONNumberKeyMarker adds a JSON Number key encoding marker
3549// to buf and returns the new buffer.
3550func EncodeJSONNumberKeyMarker(buf []byte, dir Direction) []byte {
3551 switch dir {
3552 case Ascending:
3553 return append(buf, jsonNumberKeyMarker)
3554 case Descending:
3555 return append(buf, jsonNumberKeyDescendingMarker)
3556 default:
3557 panic("invalid direction")
3558 }
3559}
3560
3561// EncodeJSONFalseKeyMarker adds a JSON False key encoding marker
3562// 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…