io.lionweb.serialization.flatbuffers.gen.FBAttachPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lionweb-java-2023.1-extensions Show documentation
Show all versions of lionweb-java-2023.1-extensions Show documentation
Java APIs for the LionWeb system
The newest version!
// automatically generated by the FlatBuffers compiler, do not modify
package io.lionweb.serialization.flatbuffers.gen;
import com.google.flatbuffers.BaseVector;
import com.google.flatbuffers.Constants;
import com.google.flatbuffers.FlatBufferBuilder;
import com.google.flatbuffers.Table;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@SuppressWarnings("unused")
public final class FBAttachPoint extends Table {
public static void ValidateVersion() {
Constants.FLATBUFFERS_24_3_25();
}
public static FBAttachPoint getRootAsFBAttachPoint(ByteBuffer _bb) {
return getRootAsFBAttachPoint(_bb, new FBAttachPoint());
}
public static FBAttachPoint getRootAsFBAttachPoint(ByteBuffer _bb, FBAttachPoint obj) {
_bb.order(ByteOrder.LITTLE_ENDIAN);
return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb));
}
public void __init(int _i, ByteBuffer _bb) {
__reset(_i, _bb);
}
public FBAttachPoint __assign(int _i, ByteBuffer _bb) {
__init(_i, _bb);
return this;
}
public String container() {
int o = __offset(4);
return o != 0 ? __string(o + bb_pos) : null;
}
public ByteBuffer containerAsByteBuffer() {
return __vector_as_bytebuffer(4, 1);
}
public ByteBuffer containerInByteBuffer(ByteBuffer _bb) {
return __vector_in_bytebuffer(_bb, 4, 1);
}
public io.lionweb.serialization.flatbuffers.gen.FBMetaPointer containment() {
return containment(new io.lionweb.serialization.flatbuffers.gen.FBMetaPointer());
}
public io.lionweb.serialization.flatbuffers.gen.FBMetaPointer containment(
io.lionweb.serialization.flatbuffers.gen.FBMetaPointer obj) {
int o = __offset(6);
return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null;
}
public String root() {
int o = __offset(8);
return o != 0 ? __string(o + bb_pos) : null;
}
public ByteBuffer rootAsByteBuffer() {
return __vector_as_bytebuffer(8, 1);
}
public ByteBuffer rootInByteBuffer(ByteBuffer _bb) {
return __vector_in_bytebuffer(_bb, 8, 1);
}
public static int createFBAttachPoint(
FlatBufferBuilder builder, int containerOffset, int containmentOffset, int rootOffset) {
builder.startTable(3);
FBAttachPoint.addRoot(builder, rootOffset);
FBAttachPoint.addContainment(builder, containmentOffset);
FBAttachPoint.addContainer(builder, containerOffset);
return FBAttachPoint.endFBAttachPoint(builder);
}
public static void startFBAttachPoint(FlatBufferBuilder builder) {
builder.startTable(3);
}
public static void addContainer(FlatBufferBuilder builder, int containerOffset) {
builder.addOffset(0, containerOffset, 0);
}
public static void addContainment(FlatBufferBuilder builder, int containmentOffset) {
builder.addOffset(1, containmentOffset, 0);
}
public static void addRoot(FlatBufferBuilder builder, int rootOffset) {
builder.addOffset(2, rootOffset, 0);
}
public static int endFBAttachPoint(FlatBufferBuilder builder) {
int o = builder.endTable();
return o;
}
public static final class Vector extends BaseVector {
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) {
__reset(_vector, _element_size, _bb);
return this;
}
public FBAttachPoint get(int j) {
return get(new FBAttachPoint(), j);
}
public FBAttachPoint get(FBAttachPoint obj, int j) {
return obj.__assign(__indirect(__element(j), bb), bb);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy