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