(buf []byte, dir Direction)
| 3641 | } |
| 3642 | |
| 3643 | func 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…