Table of Contents

Interface IMemory

Namespace
FellowOakDicom.Memory
Assembly
fo-dicom.core.dll

Represents a (possibly rented) chunk of memory that is temporarily available to use

public interface IMemory : IDisposable
Inherited Members
Extension Methods

Properties

Bytes

The underlying byte array. Note that this will probably be longer than the requested length. Always use Length instead of the length property of the Bytes. Prefer to use Span or Memory if possible

byte[] Bytes { get; }

Property Value

byte[]

Length

The originally requested length of the memory

int Length { get; }

Property Value

int

Memory

An instance of memory wrapping the memory (for use in asynchronous methods)

Memory<byte> Memory { get; }

Property Value

Memory<byte>

Span

An instance of span wrapping the memory (for use in synchronous methods)

Span<byte> Span { get; }

Property Value

Span<byte>