EncodeJSONObjectKeyMarker adds a JSON Object key encoding marker to buf and returns the new buffer.
(buf []byte, dir Direction)
| 3619 | // EncodeJSONObjectKeyMarker adds a JSON Object key encoding marker |
| 3620 | // to buf and returns the new buffer. |
| 3621 | func EncodeJSONObjectKeyMarker(buf []byte, dir Direction) []byte { |
| 3622 | switch dir { |
| 3623 | case Ascending: |
| 3624 | return append(buf, jsonObjectKeyMarker) |
| 3625 | case Descending: |
| 3626 | return append(buf, jsonObjectKeyDescendingMarker) |
| 3627 | default: |
| 3628 | panic("invalid direction") |
| 3629 | } |
| 3630 | } |
| 3631 | |
| 3632 | func EncodeJSONValueLength(buf []byte, dir Direction, v int64) []byte { |
| 3633 | switch dir { |
no outgoing calls
no test coverage detected
searching dependent graphs…