MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetBufferMinAlignment

Function GetBufferMinAlignment

Libs/flatbuffers/flatbuffers.h:1378–1381  ·  view source on GitHub ↗

@brief get the minimum alignment this buffer needs to be accessed properly. This is only known once all elements have been written (after you call Finish()). You can use this information if you need to embed a FlatBuffer in some other buffer, such that you can later read it without first having to copy it into its own buffer.

Source from the content-addressed store, hash-verified

1376 /// a FlatBuffer in some other buffer, such that you can later read it
1377 /// without first having to copy it into its own buffer.
1378 size_t GetBufferMinAlignment() const {
1379 Finished();
1380 return minalign_;
1381 }
1382
1383 /// @cond FLATBUFFERS_INTERNAL
1384 void Finished() const {

Callers

nothing calls this directly

Calls 1

FinishedFunction · 0.85

Tested by

no test coverage detected