Show / Hide Table of Contents

Struct UnmanagedMemory<T>

Represents a handle to the value of type T allocated in the unmanaged memory.

Implements
IUnmanagedMemory
IDisposable
ISupplier<Stream>
IFunctional<Func<Stream>>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.Unsafe.dll
Syntax
public struct UnmanagedMemory<T> : IUnmanagedMemory, IDisposable, ISupplier<Stream>, IFunctional<Func<Stream>> where T : unmanaged
Type Parameters
Name Description
T

The type of the value.

Constructors

| Edit this page View Source

UnmanagedMemory()

Represents a handle to the value of type T allocated in the unmanaged memory.

Declaration
public UnmanagedMemory()
| Edit this page View Source

UnmanagedMemory(T)

Allocates a new unmanaged memory for the type T and places the specified value to the allocated space.

Declaration
public UnmanagedMemory(T value)
Parameters
Type Name Description
T value

The value to be placed to the allocated space.

Fields

| Edit this page View Source

Pointer

Represents the pointer to the allocated memory.

Declaration
public readonly Pointer<T> Pointer
Field Value
Type Description
Pointer<T>

Methods

| Edit this page View Source

Dispose()

Releases the unmanaged memory.

Declaration
public void Dispose()
| Edit this page View Source

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Implements

IUnmanagedMemory
IDisposable
ISupplier<TResult>
IFunctional<TDelegate>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾