kubernetes/vendor/github.com/dustin/go-humanize/bytes.go

const Byte

const KiByte

const MiByte

const GiByte

const TiByte

const PiByte

const EiByte

const IByte

const KByte

const MByte

const GByte

const TByte

const PByte

const EByte

var bytesSizeTable

func logn(n, b float64) float64 {}

func humanateBytes(s uint64, base float64, sizes []string) string {}

// Bytes produces a human readable representation of an SI size.
//
// See also: ParseBytes.
//
// Bytes(82854982) -> 83 MB
func Bytes(s uint64) string {}

// IBytes produces a human readable representation of an IEC size.
//
// See also: ParseBytes.
//
// IBytes(82854982) -> 79 MiB
func IBytes(s uint64) string {}

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