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

Function DecodeJSONValueLength

pkg/util/encoding/encoding.go:3643–3656  ·  view source on GitHub ↗
(buf []byte, dir Direction)

Source from the content-addressed store, hash-verified

3641}
3642
3643func DecodeJSONValueLength(buf []byte, dir Direction) ([]byte, int64, error) {
3644 var v int64
3645 var err error
3646 switch dir {
3647 case Ascending:
3648 buf, v, err = DecodeVarintAscending(buf)
3649 return buf, v, err
3650 case Descending:
3651 buf, v, err = DecodeVarintDescending(buf)
3652 return buf, v, err
3653 default:
3654 panic("invalid direction")
3655 }
3656}
3657
3658// EncodeArrayKeyMarker adds the array key encoding marker to buf and
3659// returns the new buffer.

Callers

nothing calls this directly

Calls 2

DecodeVarintAscendingFunction · 0.85
DecodeVarintDescendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…