mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-03 10:47:28 +00:00
This commit is contained in:
parent
e84cbff673
commit
c2da8d5d85
5 changed files with 38 additions and 0 deletions
|
|
@ -34,6 +34,11 @@ public class ArrayReadWriteBuf implements ReadWriteBuf {
|
|||
this.writePos = startPos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
this.writePos = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getBoolean(int index) {
|
||||
return buffer[index] != 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue