(b []byte)
| 256 | } |
| 257 | |
| 258 | func (d decoder) parseNull(b []byte) ([]byte, []byte, Kind, error) { |
| 259 | if hasNullPrefix(b) { |
| 260 | return b[:4], b[4:], Null, nil |
| 261 | } |
| 262 | if len(b) < 4 { |
| 263 | return nil, b[len(b):], Undefined, unexpectedEOF(b) |
| 264 | } |
| 265 | return nil, b, Undefined, syntaxError(b, "expected 'null' but found invalid token") |
| 266 | } |
| 267 | |
| 268 | func (d decoder) parseTrue(b []byte) ([]byte, []byte, Kind, error) { |
| 269 | if hasTruePrefix(b) { |
no test coverage detected