// <auto-generated>
//  automatically generated by the FlatBuffers compiler, do not modify
// </auto-generated>

namespace nd4j.graph
{

using global::System;
using global::FlatBuffers;

public struct IntPair : IFlatbufferObject
{
  private Table __p;
  public ByteBuffer ByteBuffer { get { return __p.bb; } }
  public static IntPair GetRootAsIntPair(ByteBuffer _bb) { return GetRootAsIntPair(_bb, new IntPair()); }
  public static IntPair GetRootAsIntPair(ByteBuffer _bb, IntPair obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
  public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
  public IntPair __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

  public int First { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
  public int Second { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }

  public static Offset<IntPair> CreateIntPair(FlatBufferBuilder builder,
      int first = 0,
      int second = 0) {
    builder.StartObject(2);
    IntPair.AddSecond(builder, second);
    IntPair.AddFirst(builder, first);
    return IntPair.EndIntPair(builder);
  }

  public static void StartIntPair(FlatBufferBuilder builder) { builder.StartObject(2); }
  public static void AddFirst(FlatBufferBuilder builder, int first) { builder.AddInt(0, first, 0); }
  public static void AddSecond(FlatBufferBuilder builder, int second) { builder.AddInt(1, second, 0); }
  public static Offset<IntPair> EndIntPair(FlatBufferBuilder builder) {
    int o = builder.EndObject();
    return new Offset<IntPair>(o);
  }
};


}
