Fixed assert in flatc converting to text.

Change-Id: Idac375b22aa9beaba162084cc3396f5536a4e721
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2015-10-28 17:40:33 -07:00
parent 40b03519c1
commit 2107a7d514
2 changed files with 8 additions and 3 deletions

View File

@@ -582,6 +582,11 @@ class FlatBufferBuilder FLATBUFFERS_FINAL_CLASS {
buf_.fill(PaddingBytes(buf_.size(), elem_size));
}
void PushFlatBuffer(const uint8_t *bytes, size_t size) {
PushBytes(bytes, size);
finished = true;
}
void PushBytes(const uint8_t *bytes, size_t size) {
buf_.push(bytes, size);
}