docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ManagedNativeArray

    Wraps a managed byte[] in a NativeArray<byte>without copying memory.

    Inheritance
    object
    ManagedNativeArray
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: KtxUnity
    Assembly: Ktx.dll
    Syntax
    public class ManagedNativeArray : IDisposable

    Constructors

    ManagedNativeArray(byte[])

    Wraps a managed byte[] in a NativeArray<byte>without copying memory.

    Declaration
    public ManagedNativeArray(byte[] original)
    Parameters
    Type Name Description
    byte[] original

    The original byte[] to convert into a NativeArray<byte>

    Properties

    nativeArray

    Points to the managed NativeArray<byte>.

    Declaration
    public NativeArray<byte> nativeArray { get; }
    Property Value
    Type Description
    NativeArray<byte>

    Methods

    Dispose()

    Disposes the managed NativeArray<byte>.

    Declaration
    public void Dispose()

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)