1 // <auto-generated> 2 // automatically generated by the FlatBuffers compiler, do not modify 3 // </auto-generated> 4 5 namespace Apache.Arrow.Flatbuf 6 { 7 8 using global::System; 9 using global::FlatBuffers; 10 11 /// Date is either a 32-bit or 64-bit type representing elapsed time since UNIX 12 /// epoch (1970-01-01), stored in either of two units: 13 /// 14 /// * Milliseconds (64 bits) indicating UNIX time elapsed since the epoch (no 15 /// leap seconds), where the values are evenly divisible by 86400000 16 /// * Days (32 bits) since the UNIX epoch 17 internal struct Date : IFlatbufferObject 18 { 19 private Table __p; 20 public ByteBuffer ByteBuffer { get { return __p.bb; } } GetRootAsDateApache.Arrow.Flatbuf.Date21 public static Date GetRootAsDate(ByteBuffer _bb) { return GetRootAsDate(_bb, new Date()); } GetRootAsDateApache.Arrow.Flatbuf.Date22 public static Date GetRootAsDate(ByteBuffer _bb, Date obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } __initApache.Arrow.Flatbuf.Date23 public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } __assignApache.Arrow.Flatbuf.Date24 public Date __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 25 26 public DateUnit Unit { get { int o = __p.__offset(4); return o != 0 ? (DateUnit)__p.bb.GetShort(o + __p.bb_pos) : DateUnit.MILLISECOND; } } 27 CreateDateApache.Arrow.Flatbuf.Date28 public static Offset<Date> CreateDate(FlatBufferBuilder builder, 29 DateUnit unit = DateUnit.MILLISECOND) { 30 builder.StartObject(1); 31 Date.AddUnit(builder, unit); 32 return Date.EndDate(builder); 33 } 34 StartDateApache.Arrow.Flatbuf.Date35 public static void StartDate(FlatBufferBuilder builder) { builder.StartObject(1); } AddUnitApache.Arrow.Flatbuf.Date36 public static void AddUnit(FlatBufferBuilder builder, DateUnit unit) { builder.AddShort(0, (short)unit, 1); } EndDateApache.Arrow.Flatbuf.Date37 public static Offset<Date> EndDate(FlatBufferBuilder builder) { 38 int o = builder.EndObject(); 39 return new Offset<Date>(o); 40 } 41 }; 42 43 44 } 45