Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Feb 13, 2024
1 parent 3a0e5f8 commit 7bb2654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Flatmemory currently provides the following non-trivial composite types:
- Tuple
- Vector
- Bitset
- Trivial (for serializing a trivial type without a size prefix)
- Trivial (for serializing a trivial type `T` without a size prefix)

The supported nested types are all non-trivial types and types `T` that satisfy `std::is_trivially_copyable_v<T>`. The data of non-trivial types are stored with an offset of type `uint16_t` and all other types `T` are stored in-place. All types are prefixed with a `uint32_t` that represents the size of the buffer with the exception of `Trivial` where `sizeof(T)` represents the buffer size.
The supported nested types are all non-trivial types and trivial types `T` that satisfy `std::is_trivially_copyable_v<T>`. The data of non-trivial types are stored with an offset of type `uint16_t` and all trivial types `T` are stored in-place. All non-trivial types are prefixed with a `uint32_t` that represents the size of the buffer with the exception of `Trivial` where `sizeof(T)` represents the buffer size.

Comparison to related libraries such as flatbuffers or cap'n'proto:

Expand Down

0 comments on commit 7bb2654

Please sign in to comment.