Skip to content

Commit

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

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 is stored with an offset of type `uint16_t` and the data of all trivial types `T` is 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.
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 is stored with an offset of type `uint32_t` and the data of all trivial types `T` is 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 3b7f8f5

Please sign in to comment.