mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 17:42:42 +00:00
Mark GetBufferMinAlignment() const (#5985)
Like GetBufferPointer() and GetSize(), marks GetBufferMinAlignment function as const
This commit is contained in:
@@ -1219,7 +1219,7 @@ class FlatBufferBuilder {
|
|||||||
/// you call Finish()). You can use this information if you need to embed
|
/// 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
|
/// a FlatBuffer in some other buffer, such that you can later read it
|
||||||
/// without first having to copy it into its own buffer.
|
/// without first having to copy it into its own buffer.
|
||||||
size_t GetBufferMinAlignment() {
|
size_t GetBufferMinAlignment() const {
|
||||||
Finished();
|
Finished();
|
||||||
return minalign_;
|
return minalign_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user