Exemplo n.º 1
0
        static Offset <FByteArray> serialise_byte_array(FlatBufferBuilder b, IHasByteArray camera)
        {
            //var v_offset = FByteArray.CreateBytesVector(b, camera.Bytes);
            var v_offset = CustomFlatBufferImplementation.CreateByteVector(b, camera.Bytes);

            FByteArray.StartFByteArray(b);
            FByteArray.AddType(b, FByteDataType.PNG);
            FByteArray.AddBytes(b, v_offset);
            return(FByteArray.EndFByteArray(b));
        }
Exemplo n.º 2
0
 public static FByteArray GetRootAsFByteArray(ByteBuffer _bb, FByteArray obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }