From d8ff87989f616291dcb998670958fd42029796e5 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 22 Feb 2024 01:11:01 -0600 Subject: some stuff --- include/nbt.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/nbt.h b/include/nbt.h index 9df7680..48ee785 100644 --- a/include/nbt.h +++ b/include/nbt.h @@ -125,26 +125,23 @@ int nbt_list_shrink(nbt_tag_t *list); int nbt_list_reserve(nbt_tag_t *list, nbt_size_t newsz); /* realloc internal array to at least the list size plus moresz - * (basically equivalent to `nbt_list_reserve(list, nbt_list_length(list) + moresz)'.) */ + * (basically equivalent to `nbt_list_reserve(list, nbt_list_length(list) + moresz)`.) */ int nbt_list_reserve_more(nbt_tag_t *list, nbt_size_t moresz); /* compound functions */ nbt_size_t nbt_compound_length(nbt_tag_t *compound); -nbt_tag_t *nbt_compound_find(const char *key); -nbt_tag_t *nbt_compound_findn(const char *key, nbt_size_t keylen); +nbt_tag_t *nbt_compound_find(nbt_tag_t *compound, const char *key); +nbt_tag_t *nbt_compound_findn(nbt_tag_t *compound, const char *key, nbt_size_t keylen); /* returns NBT_TAG_END if there is no value present */ -nbt_type_t nbt_compound_type(const char *key); -nbt_type_t nbt_compound_typen(const char *key, nbt_size_t keylen); +nbt_type_t nbt_compound_type(nbt_tag_t *compound, const char *key); +nbt_type_t nbt_compound_typen(nbt_tag_t *compound, const char *key, nbt_size_t keylen); int nbt_compound_put(nbt_tag_t *compound, const char *key, nbt_tag_t *value); int nbt_compound_putn(nbt_tag_t *compound, const char *key, nbt_size_t sz, nbt_tag_t *value); -nbt_tag_t *nbt_compound_swap(nbt_tag_t *compound, const char *key, nbt_tag_t *value); -nbt_tag_t *nbt_compound_swapn(nbt_tag_t *compound, const char *key, nbt_size_t sz, nbt_tag_t *value); - int nbt_compound_remove(nbt_tag_t *compound, const char *key); int nbt_compound_removen(nbt_tag_t *compound, const char *key, nbt_size_t sz); -- cgit v1.2.3-70-g09d2