mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
This commit is contained in:
@@ -151,6 +151,17 @@ public class FlexBuffersBuilder {
|
||||
this(bb, BUILDER_FLAG_SHARE_KEYS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the FlexBuffersBuilder by purging all data that it holds.
|
||||
*/
|
||||
public void clear(){
|
||||
bb.clear();
|
||||
stack.clear();
|
||||
keyPool.clear();
|
||||
stringPool.clear();
|
||||
finished = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return `ByteBuffer` containing FlexBuffer message. {@code #finish()} must be called before calling this
|
||||
* function otherwise an assert will trigger.
|
||||
|
||||
Reference in New Issue
Block a user