mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-03 02:37:31 +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:
parent
baaffbaedd
commit
7c3e267e1e
77 changed files with 3538 additions and 238 deletions
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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue