forked from BigfootDev/flatbuffers
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
|
||||
/// a FlatBuffer in some other buffer, such that you can later read it
|
||||
/// without first having to copy it into its own buffer.
|
||||
size_t GetBufferMinAlignment() {
|
||||
size_t GetBufferMinAlignment() const {
|
||||
Finished();
|
||||
return minalign_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user