MCPcopy
hub / github.com/rclone/rclone / ByteUnit

Method ByteUnit

fs/sizesuffix.go:99–101  ·  view source on GitHub ↗

ByteUnit turns SizeSuffix into a string with byte unit

()

Source from the content-addressed store, hash-verified

97
98// ByteUnit turns SizeSuffix into a string with byte unit
99func (x SizeSuffix) ByteUnit() string {
100 return x.unit("B")
101}
102
103// ByteRateUnit turns SizeSuffix into a string with byte rate unit
104func (x SizeSuffix) ByteRateUnit() string {

Callers 7

memory.goFile · 0.80
size.goFile · 0.80
printValueFunction · 0.80
TestSizeSuffixByteUnitFunction · 0.80
StringMethod · 0.80
StringMethod · 0.80
DumpFiltersMethod · 0.80

Calls 1

unitMethod · 0.95

Tested by 1

TestSizeSuffixByteUnitFunction · 0.64