mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add append_u128
This commit is contained in:
@@ -1213,6 +1213,13 @@ Output:
|
|||||||
append_int :: proc(buf: []byte, i: i64, base: int) -> string {
|
append_int :: proc(buf: []byte, i: i64, base: int) -> string {
|
||||||
return append_bits(buf, u64(i), base, true, 8*size_of(int), digits, nil)
|
return append_bits(buf, u64(i), base, true, 8*size_of(int), digits, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
append_u128 :: proc(buf: []byte, u: u128, base: int) -> string {
|
||||||
|
return append_bits_128(buf, u, base, false, 8*size_of(uint), digits, nil)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Converts an integer value to a string and stores it in the given buffer
|
Converts an integer value to a string and stores it in the given buffer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user