findDecimalTerminator finds the decimalTerminator in the given slice.
(buf []byte)
| 384 | |
| 385 | // findDecimalTerminator finds the decimalTerminator in the given slice. |
| 386 | func findDecimalTerminator(buf []byte) (int, error) { |
| 387 | if idx := bytes.IndexByte(buf, decimalTerminator); idx != -1 { |
| 388 | return idx, nil |
| 389 | } |
| 390 | return -1, errors.Errorf("did not find terminator %#x in buffer %#x", decimalTerminator, buf) |
| 391 | } |
| 392 | |
| 393 | func decodeSmallNumber( |
| 394 | negative bool, buf []byte, tmp []byte, |
no test coverage detected
searching dependent graphs…