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