MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / bytesToInt

Method bytesToInt

internal/s3select/sql/value.go:675–679  ·  view source on GitHub ↗

All the bytesTo* functions defined below assume the value is a byte-slice. Converts untyped value into int. The bool return implies success - it returns false only if there is a conversion failure.

()

Source from the content-addressed store, hash-verified

673// Converts untyped value into int. The bool return implies success -
674// it returns false only if there is a conversion failure.
675func (v Value) bytesToInt() (int64, bool) {
676 bytes, _ := v.ToBytes()
677 i, err := strconv.ParseInt(strings.TrimSpace(string(bytes)), 10, 64)
678 return i, err == nil
679}
680
681// Converts untyped value into float. The bool return implies success
682// - it returns false only if there is a conversion failure.

Callers 5

InferBytesTypeMethod · 0.95
TestValue_bytesToIntFunction · 0.95
inferTypesForCmpFunction · 0.80
inferTypeForArithOpFunction · 0.80
evalAggregationNodeMethod · 0.80

Calls 1

ToBytesMethod · 0.95

Tested by 1

TestValue_bytesToIntFunction · 0.76