mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 07:06:26 +00:00
* [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521) * [Java] ObjectAPI implementation (#6521)
This commit is contained in:
@@ -28,5 +28,17 @@ public final class Monster extends Table {
|
||||
public Monster get(int j) { return get(new Monster(), j); }
|
||||
public Monster get(Monster obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
|
||||
}
|
||||
public MonsterT unpack() {
|
||||
MonsterT _o = new MonsterT();
|
||||
unpackTo(_o);
|
||||
return _o;
|
||||
}
|
||||
public void unpackTo(MonsterT _o) {
|
||||
}
|
||||
public static int pack(FlatBufferBuilder builder, MonsterT _o) {
|
||||
if (_o == null) return 0;
|
||||
startMonster(builder);
|
||||
return endMonster(builder);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
16
tests/MyGame/Example2/MonsterT.java
Normal file
16
tests/MyGame/Example2/MonsterT.java
Normal file
@@ -0,0 +1,16 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
package MyGame.Example2;
|
||||
|
||||
import java.nio.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
import com.google.flatbuffers.*;
|
||||
|
||||
public class MonsterT {
|
||||
|
||||
|
||||
public MonsterT() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user