Exemplo n.º 1
0
 public VtValue(VtUCharArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_40(VtUCharArray.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public VtUCharArray(VtUCharArray other) : this(UsdCsPINVOKE.new_VtUCharArray__SWIG_3(VtUCharArray.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public void swap(VtUCharArray other)
 {
     UsdCsPINVOKE.VtUCharArray_swap(swigCPtr, VtUCharArray.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
 }
Exemplo n.º 9
0
 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);
 }
Exemplo n.º 10
0
 static public List <byte> ListFromVtArray(VtUCharArray input)
 {
     return(FromVtArray(input).ToList());
 }