cavis/libnd4j/include/graph/generated/nd4j/graph/UIAddName.java

40 lines
1.7 KiB
Java

// automatically generated by the FlatBuffers compiler, do not modify
package nd4j.graph;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class UIAddName extends Table {
public static UIAddName getRootAsUIAddName(ByteBuffer _bb) { return getRootAsUIAddName(_bb, new UIAddName()); }
public static UIAddName getRootAsUIAddName(ByteBuffer _bb, UIAddName obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public UIAddName __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public int nameIdx() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
public String name() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 6, 1); }
public static int createUIAddName(FlatBufferBuilder builder,
int nameIdx,
int nameOffset) {
builder.startObject(2);
UIAddName.addName(builder, nameOffset);
UIAddName.addNameIdx(builder, nameIdx);
return UIAddName.endUIAddName(builder);
}
public static void startUIAddName(FlatBufferBuilder builder) { builder.startObject(2); }
public static void addNameIdx(FlatBufferBuilder builder, int nameIdx) { builder.addInt(0, nameIdx, 0); }
public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(1, nameOffset, 0); }
public static int endUIAddName(FlatBufferBuilder builder) {
int o = builder.endObject();
return o;
}
}