Пример #1
0
 static Offset <FSingle> build_single(FlatBufferBuilder b, IHasSingle numeral)
 {
     FSingle.StartFSingle(b);
     FSingle.AddValue(b, numeral.ObservationValue);
     //FSingle.AddRange(b, numeral.ObservationValue);
     return(FSingle.EndFSingle(b));
 }
Пример #2
0
        static Offset <FSingle> Serialise(FlatBufferBuilder b, IHasSingle numeral)
        {
            FSingle.StartFSingle(b);
            FSingle.AddValue(b, numeral.ObservationValue);

            var range_offset = FRange.CreateFRange(b,
                                                   numeral.SingleSpace.DecimalGranularity,
                                                   numeral.SingleSpace.Max,
                                                   numeral.SingleSpace.Min,
                                                   numeral.SingleSpace.NormalisedBool);

            FSingle.AddRange(b, range_offset);
            return(FSingle.EndFSingle(b));
        }