MCPcopy Create free account
hub / github.com/andeya/algorithm / ParseBytes

Function ParseBytes

go-humanize/bytes.go:110–134  ·  view source on GitHub ↗

ParseBytes parses a string representation of bytes into the number of bytes it represents. See Also: Bytes, IBytes. ParseBytes("42MB") -> 42000000, nil ParseBytes("42mib") -> 44040192, nil

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestByteParsingFunction · 0.85
TestByteErrorsFunction · 0.85
BenchmarkParseBytesFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestByteParsingFunction · 0.68
TestByteErrorsFunction · 0.68
BenchmarkParseBytesFunction · 0.68