From fbe085601b418d476e87bcaba6a968c99b3f0a00 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Mon, 18 May 2015 17:20:56 -0700 Subject: [PATCH] Java: Allow access to the underlying ByteBuffer from a table. Change-Id: Id268e35de207c25c809a09071b81eea873c9123e Tested: on Linux. --- java/com/google/flatbuffers/Table.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/com/google/flatbuffers/Table.java b/java/com/google/flatbuffers/Table.java index 1f7ae418c..c4a93756e 100644 --- a/java/com/google/flatbuffers/Table.java +++ b/java/com/google/flatbuffers/Table.java @@ -25,6 +25,8 @@ public class Table { protected int bb_pos; 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 // present. protected int __offset(int vtable_offset) {