(buf []byte, dir Direction, v int64)
| 3630 | } |
| 3631 | |
| 3632 | func EncodeJSONValueLength(buf []byte, dir Direction, v int64) []byte { |
| 3633 | switch dir { |
| 3634 | case Ascending: |
| 3635 | return EncodeVarintAscending(buf, v) |
| 3636 | case Descending: |
| 3637 | return EncodeVarintDescending(buf, v) |
| 3638 | default: |
| 3639 | panic("invalid direction") |
| 3640 | } |
| 3641 | } |
| 3642 | |
| 3643 | func DecodeJSONValueLength(buf []byte, dir Direction) ([]byte, int64, error) { |
| 3644 | var v int64 |
no test coverage detected
searching dependent graphs…