mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 12:12:39 +00:00
Java: Allow access to the underlying ByteBuffer from a table.
Change-Id: Id268e35de207c25c809a09071b81eea873c9123e Tested: on Linux.
This commit is contained in:
@@ -25,6 +25,8 @@ public class Table {
|
|||||||
protected int bb_pos;
|
protected int bb_pos;
|
||||||
protected ByteBuffer bb;
|
protected ByteBuffer bb;
|
||||||
|
|
||||||
|
public ByteBuffer getByteBuffer() { return bb; }
|
||||||
|
|
||||||
// Look up a field in the vtable, return an offset into the object, or 0 if the field is not
|
// Look up a field in the vtable, return an offset into the object, or 0 if the field is not
|
||||||
// present.
|
// present.
|
||||||
protected int __offset(int vtable_offset) {
|
protected int __offset(int vtable_offset) {
|
||||||
|
|||||||
Reference in New Issue
Block a user