flatbuffers/include/flatbuffers
Thomas Köppe 4e582b0c1d
[flexbuffers] Add "AlignedBlob", a version of "Blob" with explicit alignment. (#8993)
A blob is an array of bytes and has no intrinsic alignment (i.e. the
alignment is 1). The alignment of the existing flexbuffers blob is
solely affected by the width of the integer needed to store the blob's
size: that integer's width becomes the alignment of the blob.

The proposed AlignedBlob function here piggybacks on this effect and
simply uses a user-defined alignment for the width of the integer that
stores the blob's size; this automatically imparts that same alignment
on the blob itself. (The width is bounded below by the actual width
needed to store the blob's size.)

The ability to control the alignment of a blob is important for use
cases in which the blob itself stores structured data that we want to
access without further copies (e.g. other flatbuffer messages).
2026-03-23 10:28:03 -07:00
..
pch bulk code format fix (#8707) 2025-09-23 21:50:27 -07:00
allocator.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
array.h Run clang-format -i **/*.cpp (#8865) 2025-12-19 10:42:57 -08:00
base.h FlatBuffers Version 25.12.19 (#8871) 2025-12-19 15:06:07 -08:00
buffer.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
buffer_ref.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
code_generator.h Implement --file-names-only (#8788) 2025-12-03 04:37:06 +00:00
code_generators.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
default_allocator.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
detached_buffer.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
file_manager.h Implement --file-names-only (#8788) 2025-12-03 04:37:06 +00:00
flatbuffer_builder.h Run clang-format -i **/*.cpp (#8865) 2025-12-19 10:42:57 -08:00
flatbuffers.h flatbuffers.h: fix C++11 compilation (#8857) (#8858) 2026-02-04 13:34:55 +00:00
flatc.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
flex_flat_util.h Size verifier fix 2 (#8740) 2025-11-24 07:11:32 -05:00
flexbuffers.h [flexbuffers] Add "AlignedBlob", a version of "Blob" with explicit alignment. (#8993) 2026-03-23 10:28:03 -07:00
grpc.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
hash.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
idl.h disallow circular struct references (#8851) 2026-02-04 15:15:05 +00:00
minireflect.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
reflection.h allow to use reflection in constant time evaluation (#8978) 2026-03-20 02:01:45 +00:00
reflection_generated.h FlatBuffers Version 25.12.19 (#8871) 2025-12-19 15:06:07 -08:00
registry.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
stl_emulation.h More robust <span> check (#8631) 2025-11-26 17:33:06 -05:00
string.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
struct.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
table.h Default Vector Support C++ (#8870) 2025-12-19 14:32:51 -08:00
util.h Implement --file-names-only (#8788) 2025-12-03 04:37:06 +00:00
vector.h Run clang-format -i **/*.cpp (#8865) 2025-12-19 10:42:57 -08:00
vector_downward.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00
verifier.h Use the Google Style for clang-format without exceptions (#8706) 2025-09-23 21:19:33 -07:00