forked from BigfootDev/flatbuffers
Removed the use of b.array() to support DirectBuffers.
Also removed Table extend Constants. Change-Id: I1770b613c58094fa572a3b26a31f01bd5fb8fdbf
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
9a1f7be6fd
commit
e14bc1d9ac
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user