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) -> String

Parameters

NameTypeSwift / C#
bytesu64bytes
langStringlang

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.