]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
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 | internal struct FloatingPoint : IFlatbufferObject | |
12 | { | |
13 | private Table __p; | |
14 | public ByteBuffer ByteBuffer { get { return __p.bb; } } | |
15 | public static FloatingPoint GetRootAsFloatingPoint(ByteBuffer _bb) { return GetRootAsFloatingPoint(_bb, new FloatingPoint()); } | |
16 | public static FloatingPoint GetRootAsFloatingPoint(ByteBuffer _bb, FloatingPoint obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } | |
17 | public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; } | |
18 | public FloatingPoint __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } | |
19 | ||
20 | public Precision Precision { get { int o = __p.__offset(4); return o != 0 ? (Precision)__p.bb.GetShort(o + __p.bb_pos) : Precision.HALF; } } | |
21 | ||
22 | public static Offset<FloatingPoint> CreateFloatingPoint(FlatBufferBuilder builder, | |
23 | Precision precision = Precision.HALF) { | |
24 | builder.StartObject(1); | |
25 | FloatingPoint.AddPrecision(builder, precision); | |
26 | return FloatingPoint.EndFloatingPoint(builder); | |
27 | } | |
28 | ||
29 | public static void StartFloatingPoint(FlatBufferBuilder builder) { builder.StartObject(1); } | |
30 | public static void AddPrecision(FlatBufferBuilder builder, Precision precision) { builder.AddShort(0, (short)precision, 0); } | |
31 | public static Offset<FloatingPoint> EndFloatingPoint(FlatBufferBuilder builder) { | |
32 | int o = builder.EndObject(); | |
33 | return new Offset<FloatingPoint>(o); | |
34 | } | |
35 | }; | |
36 | ||
37 | ||
38 | } |