Files
AR-Menu/Library/PackageCache/com.unity.cloud.gltfast@db5a82ec0b47/Runtime/Scripts/Loading/INativeDownload.cs
2025-11-30 08:35:03 +02:00

24 lines
759 B
C#

// SPDX-FileCopyrightText: 2025 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0
using Unity.Collections;
namespace GLTFast.Loading
{
/// <summary>
/// Provides access to downloaded data without creating an implicit copy in memory.
/// </summary>
/// <remarks>
/// This interface is temporary and will get merged into <see cref="IDownload"/>
/// upon the next API breaking major release!
/// </remarks>
// TODO: Merge into IDownload upon next major API breaking release.
public interface INativeDownload
{
/// <summary>
/// Resulting data as NativeArray (does not allocate memory).
/// </summary>
NativeArray<byte>.ReadOnly NativeData { get; }
}
}