MCPcopy
hub / github.com/containerd/containerd / String

Method String

pkg/progress/humaans.go:30–32  ·  view source on GitHub ↗

String returns the string representation of bytes

()

Source from the content-addressed store, hash-verified

28
29// String returns the string representation of bytes
30func (b Bytes) String() string {
31 return units.CustomSize("%02.1f %s", float64(b), 1024.0, []string{"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"})
32}
33
34// BytesPerSecond is the rate in seconds for byte operations
35type BytesPerSecond int64

Callers 1

FlushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected