public static byte[] get_vector(ByteVector src, bool own) { IntPtr ptr = modshogunPINVOKE.ByteVector_get_vector__SWIG_0(ByteVector.getCPtr(src), own); if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } int[] size = new int[1]; Marshal.Copy(ptr, size, 0, 1); int len = size[0]; byte[] ret = new byte[len]; Marshal.Copy(new IntPtr(ptr.ToInt64() + Marshal.SizeOf(typeof(int))), ret, 0, len); return(ret); }
public ByteVector(ByteVector orig) : this(modshogunPINVOKE.new_ByteVector__SWIG_5(ByteVector.getCPtr(orig)), true) { if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } }