MCPcopy Index your code
hub / github.com/andeya/algorithm / ParseBigBytes

Function ParseBigBytes

go-humanize/bigbytes.go:139–164  ·  view source on GitHub ↗

ParseBigBytes parses a string representation of bytes into the number of bytes it represents. See also: BigBytes, BigIBytes. ParseBigBytes("42MB") -> 42000000, nil ParseBigBytes("42mib") -> 44040192, nil

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestBigByteParsingFunction · 0.85
TestBigByteErrorsFunction · 0.85
TestParseVeryBigFunction · 0.85
BenchmarkParseBigBytesFunction · 0.85

Calls 2

MulMethod · 0.45
DivMethod · 0.45

Tested by 4

TestBigByteParsingFunction · 0.68
TestBigByteErrorsFunction · 0.68
TestParseVeryBigFunction · 0.68
BenchmarkParseBigBytesFunction · 0.68