Skip to content

Commit

Permalink
Add cista::*::cstring type
Browse files Browse the repository at this point in the history
This new type is able to store a trailing \0 character, without
compromising one byte for storage when the string is a small-string.

Storage of NUL character within data is also supported.

This is inspired by
#187 (comment).

See #187.
  • Loading branch information
khng300 committed Nov 12, 2023
1 parent f1a9c46 commit 50e0454
Show file tree
Hide file tree
Showing 5 changed files with 581 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/cista/containers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "cista/containers/array.h"
#include "cista/containers/bitset.h"
#include "cista/containers/bitvec.h"
#include "cista/containers/cstring.h"
#include "cista/containers/fws_multimap.h"
#include "cista/containers/hash_map.h"
#include "cista/containers/hash_set.h"
Expand Down
Loading

0 comments on commit 50e0454

Please sign in to comment.