gs_bucket_array

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit a6bb288d48cf968fbab43142c430aaaa5e4409e8
parent c6f506813ec1a724ef5f8036c213e05f5f3fade6
Author: Samdal <samdal@protonmail.com>
Date:   Sun, 29 Jan 2023 00:59:55 +0100

fix typo

Diffstat:
MREADME.md | 6++++--
Msource/main.c | 2+-
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -62,9 +62,11 @@ If you don't care about elements being "valid" you can use the fast iterator: uint32_t hndl = gs_bucket_array_iter_fast_get_hndl(ba, it); // Get a normal handle from iterator } -Internally the fast iterator is just struct {uint32_t major; uint32_t minor;} +Internally the fast iterator is just `struct {uint32_t major; uint32_t minor;}` + + TIP: -> You may store your own "bool enabled;" in your what you store in the bucket array. +> You may store your own "bool enabled;" in what you store in the bucket array. > You can then use the fast iterator and check for this yourself. > However, note that this needs gs_bucket_array_new_ex where null_new_buckets is set to true, > this is because un-initialized data will otherwise interfere. diff --git a/source/main.c b/source/main.c @@ -253,7 +253,7 @@ __gs_bucket_array_fast_advance_func(gs_bucket_array_iter_fast* it, uint32_t buck Internally the fast iterator is just struct {uint32_t major; uint32_t minor;} TIP: - > You may store your own "bool enabled;" in your what you store in the bucket array. + > You may store your own "bool enabled;" in what you store in the bucket array. > You can then use the fast iterator and check for this yourself. > However, note that this needs gs_bucket_array_new_ex where null_new_buckets is set to true, > this is because un-initialized data will otherwise interfere.