Class EndianBinaryReader
Endian aware binary reader.
Namespace: Dicom.IO
Assembly: cs.temp.dll.dll
Syntax
public class EndianBinaryReader : BinaryReader
Constructors
EndianBinaryReader(Stream)
Initializes an instance of the EndianBinaryReader class.
Declaration
public EndianBinaryReader(Stream input)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | Stream from which to read. |
EndianBinaryReader(Stream, Endian)
Initializes an instance of the EndianBinaryReader class.
Declaration
public EndianBinaryReader(Stream input, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | Stream from which to read. |
Endian | endian | Endianness of the |
EndianBinaryReader(Stream, Encoding)
Initializes an instance of the EndianBinaryReader class.
Declaration
public EndianBinaryReader(Stream input, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | Stream from which to read. |
Encoding | encoding | Encoding of the |
EndianBinaryReader(Stream, Encoding, Endian)
Initializes an instance of the EndianBinaryReader class.
Declaration
public EndianBinaryReader(Stream input, Encoding encoding, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | Stream from which to read. |
Encoding | encoding | Encoding of the |
Endian | endian | Endianness of the |
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 |
---|---|
Boolean |
Methods
Create(Stream, Endian)
Convenience method for creating a binary reader with requested endian
.
Declaration
public static BinaryReader Create(Stream input, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | Stream from which to read. |
Endian | endian | Endianness of the |
Returns
Type | Description |
---|---|
BinaryReader | Binary reader with requested |
Create(Stream, Encoding, Endian)
Convenience method for creating a binary reader with requested endian
.
Declaration
public static BinaryReader Create(Stream input, Encoding encoding, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | Stream from which to read. |
Encoding | encoding | Encoding of the |
Endian | endian | Endianness of the |
Returns
Type | Description |
---|---|
BinaryReader | Binary reader with requested |
ReadDouble()
Declaration
public override double ReadDouble()
Returns
Type | Description |
---|---|
Double |
ReadInt16()
Declaration
public override short ReadInt16()
Returns
Type | Description |
---|---|
Int16 |
ReadInt32()
Declaration
public override int ReadInt32()
Returns
Type | Description |
---|---|
Int32 |
ReadInt64()
Declaration
public override long ReadInt64()
Returns
Type | Description |
---|---|
Int64 |
ReadSingle()
Declaration
public override float ReadSingle()
Returns
Type | Description |
---|---|
Single |
ReadUInt16()
Declaration
public override ushort ReadUInt16()
Returns
Type | Description |
---|---|
UInt16 |
ReadUInt32()
Declaration
public override uint ReadUInt32()
Returns
Type | Description |
---|---|
UInt32 |
ReadUInt64()
Declaration
public override ulong ReadUInt64()
Returns
Type | Description |
---|---|
UInt64 |