rrefactor

This commit is contained in:
2025-03-16 08:02:29 +01:00
parent 3b1068a3a8
commit 4796e4fe82
37 changed files with 896 additions and 115 deletions

View File

@@ -54,6 +54,11 @@ pub fn (mut d Decoder) get_bytes() ![]u8 {
return bytes
}
pub fn (mut d Decoder) get_bool() !bool {
val := d.get_u8()!
return val == 1
}
// adds u16 length of string in bytes + the bytes
pub fn (mut d Decoder) get_u8() !u8 {
if d.data.len < 1 {