16f74a91c1
move nbt_strlen to nbt.h, and rename to nbt_namelen
2025-07-24 16:05:18 +02:00
dd96178c7a
apply new formatting rules to the whole project
2025-07-24 11:40:12 +02:00
6dfcb2b5b9
update nbt_proc function, still inoperable
2025-07-23 16:41:36 +02:00
54e4bf45f9
add funciton for data loading/processing
2025-07-23 16:37:25 +02:00
1fb878b5ae
modify the array bytelength function to get the bytelength of a single tag.
2025-07-23 16:32:39 +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