Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class EndianBinaryReader

    Endian aware binary reader.

    Inheritance
    System.Object
    System.IO.BinaryReader
    EndianBinaryReader
    Implements
    System.IDisposable
    Inherited Members
    System.IO.BinaryReader.Close()
    System.IO.BinaryReader.Dispose()
    System.IO.BinaryReader.Dispose(System.Boolean)
    System.IO.BinaryReader.FillBuffer(System.Int32)
    System.IO.BinaryReader.PeekChar()
    System.IO.BinaryReader.Read()
    System.IO.BinaryReader.Read(System.Byte[], System.Int32, System.Int32)
    System.IO.BinaryReader.Read(System.Char[], System.Int32, System.Int32)
    System.IO.BinaryReader.Read7BitEncodedInt()
    System.IO.BinaryReader.ReadBoolean()
    System.IO.BinaryReader.ReadByte()
    System.IO.BinaryReader.ReadBytes(System.Int32)
    System.IO.BinaryReader.ReadChar()
    System.IO.BinaryReader.ReadChars(System.Int32)
    System.IO.BinaryReader.ReadDecimal()
    System.IO.BinaryReader.ReadSByte()
    System.IO.BinaryReader.ReadString()
    System.IO.BinaryReader.BaseStream
    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
    Assembly: fo-dicom.core.dll
    Syntax
    public class EndianBinaryReader : BinaryReader, IDisposable

    Constructors

    EndianBinaryReader(Stream, Endian, Boolean)

    Initializes an instance of the EndianBinaryReader class.

    Declaration
    public EndianBinaryReader(Stream input, Endian endian, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream input

    Stream from which to read.

    Endian endian

    Endianness of the input.

    System.Boolean leaveOpen

    true to leave the stream open after the EndianBinaryReaderr object is disposed; otherwise, false.

    EndianBinaryReader(Stream, Boolean)

    Initializes an instance of the EndianBinaryReader class.

    Declaration
    public EndianBinaryReader(Stream input, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream input

    Stream from which to read.

    System.Boolean leaveOpen

    true to leave the stream open after the EndianBinaryReaderr object is disposed; otherwise, false.

    EndianBinaryReader(Stream, Encoding, Endian, Boolean)

    Initializes an instance of the EndianBinaryReader class.

    Declaration
    public EndianBinaryReader(Stream input, Encoding encoding, Endian endian, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream input

    Stream from which to read.

    System.Text.Encoding encoding

    Encoding of the input.

    Endian endian

    Endianness of the input.

    System.Boolean leaveOpen

    true to leave the stream open after the EndianBinaryReaderr object is disposed; otherwise, false.

    EndianBinaryReader(Stream, Encoding, Boolean)

    Initializes an instance of the EndianBinaryReader class.

    Declaration
    public EndianBinaryReader(Stream input, Encoding encoding, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream input

    Stream from which to read.

    System.Text.Encoding encoding

    Encoding of the input.

    System.Boolean leaveOpen

    true to leave the stream open after the EndianBinaryReaderr object is disposed; otherwise, false.

    Properties

    Endian

    Gets or sets the endianness of the binary reader.

    Declaration
    public Endian Endian { get; protected set; }
    Property Value
    Type Description
    Endian

    UseInternalBuffer

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

    Methods

    Create(Stream, Endian, Boolean)

    Convenience method for creating a binary reader with requested endian.

    Declaration
    public static BinaryReader Create(Stream input, Endian endian, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream input

    Stream from which to read.

    Endian endian

    Endianness of the input.

    System.Boolean leaveOpen

    true to leave the stream open after the EndianBinaryReaderr object is disposed; otherwise, false.

    Returns
    Type Description
    System.IO.BinaryReader

    Binary reader with requested endian.

    Create(Stream, Encoding, Endian, Boolean)

    Convenience method for creating a binary reader with requested endian.

    Declaration
    public static BinaryReader Create(Stream input, Encoding encoding, Endian endian, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream input

    Stream from which to read.

    System.Text.Encoding encoding

    Encoding of the input.

    Endian endian

    Endianness of the input.

    System.Boolean leaveOpen

    true to leave the stream open after the EndianBinaryReaderr object is disposed; otherwise, false.

    Returns
    Type Description
    System.IO.BinaryReader

    Binary reader with requested endian.

    ReadDouble()

    Declaration
    public override double ReadDouble()
    Returns
    Type Description
    System.Double
    Overrides
    System.IO.BinaryReader.ReadDouble()

    ReadInt16()

    Declaration
    public override short ReadInt16()
    Returns
    Type Description
    System.Int16
    Overrides
    System.IO.BinaryReader.ReadInt16()

    ReadInt32()

    Declaration
    public override int ReadInt32()
    Returns
    Type Description
    System.Int32
    Overrides
    System.IO.BinaryReader.ReadInt32()

    ReadInt64()

    Declaration
    public override long ReadInt64()
    Returns
    Type Description
    System.Int64
    Overrides
    System.IO.BinaryReader.ReadInt64()

    ReadSingle()

    Declaration
    public override float ReadSingle()
    Returns
    Type Description
    System.Single
    Overrides
    System.IO.BinaryReader.ReadSingle()

    ReadUInt16()

    Declaration
    public override ushort ReadUInt16()
    Returns
    Type Description
    System.UInt16
    Overrides
    System.IO.BinaryReader.ReadUInt16()

    ReadUInt32()

    Declaration
    public override uint ReadUInt32()
    Returns
    Type Description
    System.UInt32
    Overrides
    System.IO.BinaryReader.ReadUInt32()

    ReadUInt64()

    Declaration
    public override ulong ReadUInt64()
    Returns
    Type Description
    System.UInt64
    Overrides
    System.IO.BinaryReader.ReadUInt64()

    Implements

    System.IDisposable

    Extension Methods

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