MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / findDecimalTerminator

Function findDecimalTerminator

pkg/util/encoding/decimal.go:391–396  ·  view source on GitHub ↗

findDecimalTerminator finds the decimalTerminator in the given slice.

(buf []byte)

Source from the content-addressed store, hash-verified

389
390// findDecimalTerminator finds the decimalTerminator in the given slice.
391func 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
398func decodeSmallNumber(
399 negative bool, buf []byte, tmp []byte,

Callers 4

getDecimalLenFunction · 0.85
decodeSmallNumberFunction · 0.85
decodeMediumNumberFunction · 0.85
decodeLargeNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…