forked from BigfootDev/flatbuffers
* [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:
30
tests/MyGame/Example/ArrayTableT.java
Normal file
30
tests/MyGame/Example/ArrayTableT.java
Normal file
@@ -0,0 +1,30 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
package MyGame.Example;
|
||||
|
||||
import java.nio.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
import com.google.flatbuffers.*;
|
||||
|
||||
public class ArrayTableT {
|
||||
private MyGame.Example.ArrayStructT a;
|
||||
|
||||
public MyGame.Example.ArrayStructT getA() { return a; }
|
||||
|
||||
public void setA(MyGame.Example.ArrayStructT a) { this.a = a; }
|
||||
|
||||
|
||||
public ArrayTableT() {
|
||||
this.a = new MyGame.Example.ArrayStructT();
|
||||
}
|
||||
public static ArrayTableT deserializeFromBinary(byte[] fbBuffer) {
|
||||
return ArrayTable.getRootAsArrayTable(ByteBuffer.wrap(fbBuffer)).unpack();
|
||||
}
|
||||
public byte[] serializeToBinary() {
|
||||
FlatBufferBuilder fbb = new FlatBufferBuilder();
|
||||
ArrayTable.finishArrayTableBuffer(fbb, ArrayTable.pack(fbb, this));
|
||||
return fbb.sizedByteArray();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user