Reference · Rules and helpers · rules.rs
format_bytes Function
"4,2 MB" / "4.2 MB"; under 1 MB in KB.
func formatBytes(bytes: UInt64, lang: String) -> Stringpublic static string FormatBytes(ulong bytes, string lang)pub fn format_bytes(bytes: u64, lang: String) -> StringParameters
| Name | Type | Swift / C# |
|---|---|---|
bytes | u64 | bytes |
lang | String | lang |
Returns
String
Errors
Does not throw.
Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.