MCPcopy Create free account
hub / github.com/bytesize-rs/bytesize / kb

Function kb

src/lib.rs:105–107  ·  view source on GitHub ↗

Converts a quantity of kilobytes to bytes.

(size: impl Into<u64>)

Source from the content-addressed store, hash-verified

103
104/// Converts a quantity of kilobytes to bytes.
105pub fn kb(size: impl Into<u64>) -> u64 {
106 size.into() * KB
107}
108
109/// Converts a quantity of kibibytes to bytes.
110pub fn kib<V: Into<u64>>(size: V) -> u64 {

Callers 3

test_to_string_asFunction · 0.85
test_arithmetic_opFunction · 0.85
test_sumFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_to_string_asFunction · 0.68
test_arithmetic_opFunction · 0.68
test_sumFunction · 0.68