Exemplo n.º 1
0
        public static asd.swig.VectorUint8 CreateVectorUint8FromArray(byte[] array)
        {
            var buf = new asd.swig.VectorUint8();

            foreach (var b in array)
            {
                buf.Add(b);
            }

            return(buf);
        }
Exemplo n.º 2
0
 public static byte[] CreateArrayFromVectorUint8(asd.swig.VectorUint8 buf)
 {
     byte[] dst = new byte[buf.Count];
     buf.CopyTo(dst);
     return(dst);
 }
Exemplo n.º 3
0
 public static void DisposeVectorUint8(asd.swig.VectorUint8 buf)
 {
     buf.Dispose();
 }