Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Interface IByteBuffer

    Common interface for byte buffers.

    Namespace: FellowOakDicom.IO.Buffer
    Assembly: fo-dicom.core.dll
    Syntax
    public interface IByteBuffer

    Properties

    Data

    Gets the data.

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

    IsMemory

    Gets whether data is buffered in memory or not.

    Declaration
    bool IsMemory { get; }
    Property Value
    Type Description
    System.Boolean

    Size

    Gets the size of the buffered data.

    Declaration
    long Size { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    CopyToStream(Stream)

    Copies the contents of this buffer to the provided stream

    Declaration
    void CopyToStream(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    A stream that will receive the contents of this buffer

    CopyToStreamAsync(Stream, CancellationToken)

    Copies the contents of this buffer to the provided stream

    Declaration
    Task CopyToStreamAsync(Stream stream, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.IO.Stream stream

    A stream that will receive the contents of this buffer

    System.Threading.CancellationToken cancellationToken

    A cancellation token that halts the execution of the copy operation

    Returns
    Type Description
    System.Threading.Tasks.Task

    GetByteRange(Int64, Int32, Byte[])

    Gets a subset of the data and fills it in the provided output buffer

    Declaration
    void GetByteRange(long offset, int count, byte[] output)
    Parameters
    Type Name Description
    System.Int64 offset

    Offset from beginning of data array.

    System.Int32 count

    Number of bytes to return.

    System.Byte[] output

    The array where the data will be written to

    Extension Methods

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