Search Results for

    Show / Hide Table of Contents

    Class CompositeByteBuffer

    Implementation of an IByteBuffer consisting of a collection of IByteBuffer instances.

    Inheritance
    Object
    CompositeByteBuffer
    Implements
    IByteBuffer
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Dicom.IO.Buffer
    Assembly: cs.temp.dll.dll
    Syntax
    public class CompositeByteBuffer : IByteBuffer

    Constructors

    CompositeByteBuffer(IByteBuffer[])

    Initializes an instance of the CompositeByteBuffer class.

    Declaration
    public CompositeByteBuffer(params IByteBuffer[] buffers)
    Parameters
    Type Name Description
    IByteBuffer[] buffers

    Array of buffers to initially constitute the CompositeByteBuffer instance.

    CompositeByteBuffer(IEnumerable<IByteBuffer>)

    Initializes an instance of the CompositeByteBuffer class.

    Declaration
    public CompositeByteBuffer(IEnumerable<IByteBuffer> buffers)
    Parameters
    Type Name Description
    IEnumerable<IByteBuffer> buffers

    Collection of buffers to initially constitute the CompositeByteBuffer instance.

    Properties

    Buffers

    Gets the collection of IByteBuffer constituting the CompositeByteBuffer.

    Declaration
    public IList<IByteBuffer> Buffers { get; }
    Property Value
    Type Description
    IList<IByteBuffer>

    Data

    Gets the data.

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

    IsMemory

    Gets whether data is buffered in memory or not.

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

    Size

    Gets the size of the buffered data.

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

    Methods

    GetByteRange(Int64, Int32)

    Gets a subset of the data.

    Declaration
    public byte[] GetByteRange(long offset, int count)
    Parameters
    Type Name Description
    Int64 offset

    Offset from beginning of data array.

    Int32 count

    Number of bytes to return.

    Returns
    Type Description
    Byte[]

    Requested sub-range of the array.

    Implements

    IByteBuffer
    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors