IsArrayKeyDone returns if the first byte in the input is the array terminator for the input direction.
(buf []byte, dir Direction)
| 3749 | // IsArrayKeyDone returns if the first byte in the input is the array |
| 3750 | // terminator for the input direction. |
| 3751 | func IsArrayKeyDone(buf []byte, dir Direction) bool { |
| 3752 | expected := arrayKeyTerminator |
| 3753 | if dir == Descending { |
| 3754 | expected = arrayKeyDescendingTerminator |
| 3755 | } |
| 3756 | return buf[0] == expected |
| 3757 | } |
| 3758 | |
| 3759 | // isJSONKeyDone returns if the first byte in the input is the JSON |
| 3760 | // terminator for the input direction. |
no outgoing calls
no test coverage detected
searching dependent graphs…