Exemplo n.º 1
0
        static Offset <FSingle> serialise_single(FlatBufferBuilder b, IHasSingle numeral)
        {
            FSingle.StartFSingle(b);
            FSingle.AddValue(b, numeral.ObservationValue);

            var range_offset = FRange.CreateFRange(
                b,
                numeral.SingleSpace._Decimal_Granularity,
                numeral.SingleSpace._Max_Value,
                numeral.SingleSpace._Min_Value);

            FSingle.AddRange(b, range_offset);
            return(FSingle.EndFSingle(b));
        }
Exemplo n.º 2
0
 public static FSingle GetRootAsFSingle(ByteBuffer _bb, FSingle obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }