public VtValue(VtUCharArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_40(VtUCharArray.getCPtr(obj)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public VtUCharArray(VtUCharArray other) : this(UsdCsPINVOKE.new_VtUCharArray__SWIG_3(VtUCharArray.getCPtr(other)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void swap(VtUCharArray other) { UsdCsPINVOKE.VtUCharArray_swap(swigCPtr, VtUCharArray.getCPtr(other)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public static bool Equals(VtUCharArray lhs, VtUCharArray rhs) { bool ret = UsdCsPINVOKE.VtUCharArray_Equals(VtUCharArray.getCPtr(lhs), VtUCharArray.getCPtr(rhs)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool IsIdentical(VtUCharArray other) { bool ret = UsdCsPINVOKE.VtUCharArray_IsIdentical(swigCPtr, VtUCharArray.getCPtr(other)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
// ----------------------------------------------------------------------------------------- // // byte[], List<byte> <--> UCharArray // ----------------------------------------------------------------------------------------- // static public VtUCharArray ToVtArray(byte[] input) { var output = new VtUCharArray((uint)input.Length); unsafe { fixed(byte *p = input) { output.CopyFromArray((IntPtr)p); } } return(output); }
static public void FromVtArray(VtUCharArray input, ref byte[] output) { if (output.Length != input.size()) { output = UsdIo.ArrayAllocator.Malloc <byte>(input.size()); } unsafe { fixed(byte *p = output) { input.CopyToArray((IntPtr)p); } } }
// Convenience API: generates garbage, do not use when performance matters. static public byte[] FromVtArray(VtUCharArray input) { byte[] output = UsdIo.ArrayAllocator.Malloc <byte>(input.size()); FromVtArray(input, ref output); return(output); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VtUCharArray obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
static public List <byte> ListFromVtArray(VtUCharArray input) { return(FromVtArray(input).ToList()); }