Add formatting of bytes into the best unit of measurement

This commit is contained in:
Laytan Laats
2023-09-01 19:17:07 +02:00
parent 4aa4317c28
commit 735cfcd290
6 changed files with 130 additions and 0 deletions
+2
View File
@@ -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)