Skip to main content
Version: 14 Oct 2024

UnsafePlane

NameSpace: Android

Public Fields

PixelStride


public int PixelStride { get; set; }


RowStride


public int RowStride { get; set; }


Public Methods

NativeArray< byte > CopyToNativeArray

public NativeArray< byte > CopyToNativeArray(
Allocator allocator
)

Parameters

TypeNameDescription
Allocatorallocator

T GetDataAtOffset< T >

public T GetDataAtOffset< T >(
int offset
)

Parameters

TypeNameDescription
intoffset

T GetDataAtOffsetUnchecked< T >

public T GetDataAtOffsetUnchecked< T >(
int offset
)

Parameters

TypeNameDescription
intoffset

Public Attributes

Data


public byte * Data => data;


DataLength


public int DataLength => layout.DataLength;


IsValid


public bool IsValid => data != null;