Interface IUnmanagedArray<T>
Provides access to the array allocated in the unmanaged memory.
Inherited Members
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.Unsafe.dll
Syntax
public interface IUnmanagedArray<T> : IUnmanagedMemory, IDisposable, IEnumerable<T> where T : struct
Type Parameters
Name | Description |
---|---|
T | The type of the array elements. |
Properties
| Improve this Doc View SourceLength
Gets the number of elements in the unmanaged memory.
Declaration
int Length { get; }
Property Value
Type | Description |
---|---|
Int32 |
Pointer
Gets a pointer to the allocated unmanaged memory.
Declaration
Pointer<T> Pointer { get; }
Property Value
Type | Description |
---|---|
Pointer<T> |
Span
Gets a span from the current instance.
Declaration
Span<T> Span { get; }
Property Value
Type | Description |
---|---|
Span<T> |