Table of Contents

Interface IUnmanagedMemoryBlock

Namespace
NumSharp.Backends.Unmanaged
Assembly
NumSharp.dll
public interface IUnmanagedMemoryBlock : IEnumerable, IMemoryBlock, ICloneable
Inherited Members
Extension Methods

Properties

IsReleased

Diagnostic: true once the buffer has been released.

bool IsReleased { get; }

Property Value

bool

Methods

Free()

void Free()

Reallocate(long, bool)

void Reallocate(long length, bool copyOldValues = false)

Parameters

length long
copyOldValues bool

Release()

Atomically decrement the reference count. When the count reaches zero the underlying buffer is released immediately, synchronously on the calling thread.

void Release()

TryAddRef()

Atomically increment the reference count. Used when a new logical owner (e.g. an NDArray) begins sharing this block. Returns false if the block has already been released and must not be referenced further.

bool TryAddRef()

Returns

bool