| 2237 | /// These kinds of buffers are useful for creating a stream of FlatBuffers. |
| 2238 | template<typename T> |
| 2239 | void FinishSizePrefixed(Offset<T> root, |
| 2240 | const char *file_identifier = nullptr) { |
| 2241 | Finish(root.o, file_identifier, true); |
| 2242 | } |
| 2243 | |
| 2244 | void SwapBufAllocator(FlatBufferBuilder &other) { |
| 2245 | buf_.swap_allocator(other.buf_); |