4b2404e903
move utility functions upwards to keep the logical order
2025-08-07 13:00:09 +02:00
d70888f9fb
remove __attribute__((fallthrough)) from all that do not require it. Replace with // fall through in some places for readability
2025-07-24 16:32:41 +02:00
6dbf034ba1
add marker so I remember to add this back in
2025-07-24 16:29:03 +02:00
6ccb55de8b
remove unused function nbt_cmpstr, since we're performing this check directly now.
2025-07-24 16:29:03 +02:00
69dc174ff2
remove nbt_arrlen function
2025-07-24 16:29:03 +02:00
58d0dd01e2
move nbt_strlen to nbt.h, and rename to nbt_namelen
2025-07-24 16:29:03 +02:00
1d5df8df0a
apply new formatting rules to the whole project
2025-07-24 16:29:03 +02:00
13e1ceddfc
update nbt_proc function, still inoperable
2025-07-24 16:28:25 +02:00
333417dadd
add funciton for data loading/processing
2025-07-24 16:28:25 +02:00
fd8db02e77
modify the array bytelength function to get the bytelength of a single tag.
2025-07-24 16:28:25 +02:00
2daeb9823c
add a function to get an NBT array bytelength
2025-07-23 14:55:24 +02:00
4e1cd68c38
semantic fix, use explicit fallthrough
...
GCC was complaining, and I didn't have a valid counter argument.
2025-07-23 14:07:06 +02:00
501c623f01
rename nbt_prim_tagsize to nbt_primsize, for consistency.
2025-07-23 13:00:53 +02:00
65ee7c5b55
add a function for checking whether a tag is primitive or not
...
mainly for niche uses
2025-07-23 13:00:53 +02:00
5d7c244c8f
optimise switch of nbt_prim_tagsize
...
had duplicate switch branches, which wastes binary size.
2025-07-23 13:00:53 +02:00
9fd920908e
move nbt_prim_tagsize to header, since it's a pretty useful funciton.
2025-07-23 13:00:53 +02:00
6c2f51929b
write a function for skipping to the next NBT tag
...
including a function for acquireing the array size, and bytesize of a
tag.
2025-07-18 10:29:08 +02:00
ee1811a3a5
rewrite endian header to not interfere with the endian system header.
...
the system header is inconsistently available across platforms.
This header provides the same functionality for less of the cost,
overriding the system macros.
2025-07-18 10:29:08 +02:00
db76d6992b
add function for comparing an NBT string with a C string
2025-07-15 13:51:23 +02:00
8345ac1164
remove nbt_procdat struct
2025-07-15 13:51:23 +02:00
13451da2e8
add basic function signature for processing the NBT data
2025-07-15 13:51:23 +02:00