rewritten Array and List, changed str.size -> .len

This commit is contained in:
2025-11-25 14:13:25 +05:00
parent b557881168
commit 82bd234d08
48 changed files with 389 additions and 227 deletions

View File

@@ -141,7 +141,7 @@ Result(void) file_readWhole(FILE* f, Array(u8)* out_buf){
bool success = false;
try(i64 f_size, i, file_getSize(f));
Array(u8) buf = Array_alloc(u8, f_size);
Array(u8) buf = Array_u8_alloc(f_size);
Defer(if(!success) free(buf.data));
try_void(file_readBytesArray(f, buf));