public static asd.swig.VectorUint8 CreateVectorUint8FromArray(byte[] array) { var buf = new asd.swig.VectorUint8(); foreach (var b in array) { buf.Add(b); } return(buf); }
public static byte[] CreateArrayFromVectorUint8(asd.swig.VectorUint8 buf) { byte[] dst = new byte[buf.Count]; buf.CopyTo(dst); return(dst); }
public static void DisposeVectorUint8(asd.swig.VectorUint8 buf) { buf.Dispose(); }