summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWouter van Oortmerssen <wvo@google.com>2014-12-08 17:14:38 -0800
committerWouter van Oortmerssen <wvo@google.com>2014-12-08 17:14:38 -0800
commit956666924521808bc88df53f857d3b78eb6ca486 (patch)
treed7a6c7f8e17c71cae078274163a2ec5318e6d913 /tests
parent354fd906a54d5a241785b57286d4aa58a2c91e86 (diff)
downloadflatbuffers-956666924521808bc88df53f857d3b78eb6ca486.tar.gz
flatbuffers-956666924521808bc88df53f857d3b78eb6ca486.tar.bz2
flatbuffers-956666924521808bc88df53f857d3b78eb6ca486.zip
Fixed Java ByteBuffer accessors generated for non-scalar vectors.
Change-Id: I9787ab88e5bd4846d92995e2bb05d0c2121113ca Tested: on Linux.
Diffstat (limited to 'tests')
-rw-r--r--tests/MyGame/Example/Monster.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/MyGame/Example/Monster.java b/tests/MyGame/Example/Monster.java
index f7411d9d..dad4d590 100644
--- a/tests/MyGame/Example/Monster.java
+++ b/tests/MyGame/Example/Monster.java
@@ -27,16 +27,13 @@ public class Monster extends Table {
public Test test4(int j) { return test4(new Test(), j); }
public Test test4(Test obj, int j) { int o = __offset(22); return o != 0 ? obj.__init(__vector(o) + j * 4, bb) : null; }
public int test4Length() { int o = __offset(22); return o != 0 ? __vector_len(o) : 0; }
- public ByteBuffer test4AsByteBuffer() { return __vector_as_bytebuffer(22, 4); }
public String testarrayofstring(int j) { int o = __offset(24); return o != 0 ? __string(__vector(o) + j * 4) : null; }
public int testarrayofstringLength() { int o = __offset(24); return o != 0 ? __vector_len(o) : 0; }
- public ByteBuffer testarrayofstringAsByteBuffer() { return __vector_as_bytebuffer(24, 4); }
/// an example documentation comment: this will end up in the generated code
/// multiline too
public Monster testarrayoftables(int j) { return testarrayoftables(new Monster(), j); }
public Monster testarrayoftables(Monster obj, int j) { int o = __offset(26); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
public int testarrayoftablesLength() { int o = __offset(26); return o != 0 ? __vector_len(o) : 0; }
- public ByteBuffer testarrayoftablesAsByteBuffer() { return __vector_as_bytebuffer(26, 4); }
public Monster enemy() { return enemy(new Monster()); }
public Monster enemy(Monster obj) { int o = __offset(28); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
public byte testnestedflatbuffer(int j) { int o = __offset(30); return o != 0 ? bb.get(__vector(o) + j * 1) : 0; }