MCPcopy Create free account
hub / github.com/alecthomas/units / ParseBase2Bytes

Function ParseBase2Bytes

bytes.go:31–37  ·  view source on GitHub ↗

ParseBase2Bytes supports both iB and B in base-2 multipliers. That is, KB and KiB are both 1024. However "kB", which is the correct SI spelling of 1000 Bytes, is rejected.

(s string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestParseBase2BytesFunction · 0.85
UnmarshalTextMethod · 0.85

Calls 2

ParseUnitFunction · 0.85
Base2BytesTypeAlias · 0.85

Tested by 1

TestParseBase2BytesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…