mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
28 lines
1.3 KiB
Java
28 lines
1.3 KiB
Java
// 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.*;
|
|
|
|
@SuppressWarnings("unused")
|
|
public final class Monster extends Table {
|
|
public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); }
|
|
public static Monster getRootAsMonster(ByteBuffer _bb, Monster obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
|
|
public static Monster getSizePrefixedRootAsMonster(ByteBuffer _psbb) { return getSizePrefixedRootAsMonster(_psbb, new Monster()); }
|
|
public static Monster getSizePrefixedRootAsMonster(ByteBuffer _psbb, Monster obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsMonster(_bb, obj); }
|
|
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
|
|
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
|
|
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
public static void startMonster(FlatBufferBuilder builder) { builder.startObject(0); }
|
|
public static int endMonster(FlatBufferBuilder builder) {
|
|
int o = builder.endObject();
|
|
return o;
|
|
}
|
|
}
|
|
|