static public void FromVtArray(SdfAssetPathArray input, ref SdfAssetPath[] output) { if (output.Length != input.size()) { output = UsdIo.ArrayAllocator.Malloc <SdfAssetPath>(input.size()); } // PERFORMANCE: this is super inefficient. for (int i = 0; i < input.size(); i++) { output[i] = input[i]; } }
static public SdfAssetPath[] FromVtArray(SdfAssetPathArray input) { var output = UsdIo.ArrayAllocator.Malloc <SdfAssetPath>(input.size()); FromVtArray(input, ref output); return(output); }