Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class FileByteBuffer

    Inheritance
    System.Object
    FileByteBuffer
    Implements
    IByteBuffer
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FellowOakDicom.IO.Buffer
    Assembly: fo-dicom.core.dll
    Syntax
    public sealed class FileByteBuffer : IByteBuffer

    Constructors

    FileByteBuffer(IFileReference, Int64, Int64)

    Declaration
    public FileByteBuffer(IFileReference file, long position, long length)
    Parameters
    Type Name Description
    IFileReference file
    System.Int64 position
    System.Int64 length

    FileByteBuffer(IFileReference, Int64, Int64, IMemoryProvider)

    Declaration
    public FileByteBuffer(IFileReference file, long position, long length, IMemoryProvider memoryProvider)
    Parameters
    Type Name Description
    IFileReference file
    System.Int64 position
    System.Int64 length
    IMemoryProvider memoryProvider

    Properties

    Data

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

    File

    Declaration
    public IFileReference File { get; }
    Property Value
    Type Description
    IFileReference

    IsMemory

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

    Position

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

    Size

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

    Methods

    CopyToStream(Stream)

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

    CopyToStreamAsync(Stream, CancellationToken)

    Declaration
    public async Task CopyToStreamAsync(Stream stream, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Threading.CancellationToken cancellationToken
    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
    public 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

    Implements

    IByteBuffer

    Extension Methods

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