Java: Allow access to the underlying ByteBuffer from a table.

Change-Id: Id268e35de207c25c809a09071b81eea873c9123e
Tested: on Linux.
parent 36f9b1ec
...@@ -25,6 +25,8 @@ public class Table { ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment