Java: Allow access to the underlying ByteBuffer from a table.
Change-Id: Id268e35de207c25c809a09071b81eea873c9123e Tested: on Linux.
This commit is contained in:
parent
36f9b1ec91
commit
fbe085601b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue