Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Interface IMemory

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

    Inherited Members
    System.IDisposable.Dispose()
    Namespace: FellowOakDicom.Memory
    Assembly: fo-dicom.core.dll
    Syntax
    public interface IMemory : IDisposable

    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

    Declaration
    byte[] Bytes { get; }
    Property Value
    Type Description
    System.Byte[]

    Length

    The originally requested length of the memory

    Declaration
    int Length { get; }
    Property Value
    Type Description
    System.Int32

    Memory

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

    Declaration
    Memory<byte> Memory { get; }
    Property Value
    Type Description
    System.Memory<System.Byte>

    Span

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

    Declaration
    Span<byte> Span { get; }
    Property Value
    Type Description
    System.Span<System.Byte>

    Extension Methods

    LinqExtensions.IsOneOf<T>(T, T[])
    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors