Exemple #1
0
        static Offset <FArray> serialise_array(FlatBufferBuilder b, IHasArray float_a)
        {
            //var v_offset = FArray.CreateArrayVector(b, camera.ObservationArray);
            var v_offset = CustomFlatBufferImplementation.CreateFloatVector(b, float_a.ObservationArray);

            //FArray.StartRangesVector(b,);
            FArray.StartFArray(b);
            FArray.AddArray(b, v_offset);
            //FArray.AddRanges(b,);
            return(FArray.EndFArray(b));
        }
Exemple #2
0
 public static FArray GetRootAsFArray(ByteBuffer _bb, FArray obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }