Add formatting of bytes into the best unit of measurement
This commit is contained in:
1 parent
4aa4317c28
commit
735cfcd290
6 files changed
+130
No files matched your search
@@ -8,6 +8,8 @@ Kilobyte :: runtime.Kilobyte
|
||||
Megabyte :: runtime.Megabyte
|
||||
Gigabyte :: runtime.Gigabyte
|
||||
Terabyte :: runtime.Terabyte
|
||||
Petabyte :: runtime.Petabyte
|
||||
Exabyte :: runtime.Exabyte
|
||||
|
||||
set :: proc "contextless" (data: rawptr, value: byte, len: int) -> rawptr {
|
||||
return runtime.memset(data, i32(value), len)
|
||||
|
||||
Reference in new issue
Block a user