Removed the use of b.array() to support DirectBuffers.

Also removed Table extend Constants.

Change-Id: I1770b613c58094fa572a3b26a31f01bd5fb8fdbf
This commit is contained in:
bml13
2014-09-09 10:30:09 +01:00
committed by Wouter van Oortmerssen
parent 9a1f7be6fd
commit e14bc1d9ac
3 changed files with 27 additions and 21 deletions

View File

@@ -105,8 +105,9 @@ class JavaTest {
// Test it:
TestBuffer(fbb.dataBuffer(), fbb.dataStart());
// Make sure it also works with read only ByteBuffers. This is slower, since
// creating strings incurs an additional copy (see Table.__string).
// Make sure it also works with read only ByteBuffers. This is slower,
// since creating strings incurs an additional copy
// (see Table.__string).
TestBuffer(fbb.dataBuffer().asReadOnlyBuffer(), fbb.dataStart());
System.out.println("FlatBuffers test: completed successfully");