Class EndianBinaryWriter
Endian aware binary writer.
Namespace: Dicom.IO
Assembly: cs.temp.dll.dll
Syntax
public class EndianBinaryWriter : BinaryWriter
Constructors
EndianBinaryWriter(Stream)
Initializes an instance of the EndianBinaryWriter class.
Declaration
public EndianBinaryWriter(Stream output)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | Stream to which output should be written. |
Remarks
Uses the endianness of the system.
EndianBinaryWriter(Stream, Endian)
Initializes an instance of the EndianBinaryWriter class.
Declaration
public EndianBinaryWriter(Stream output, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | Stream to which output should be written. |
Endian | endian | Endianness of the output. |
EndianBinaryWriter(Stream, Encoding)
Initializes an instance of the EndianBinaryWriter class.
Declaration
public EndianBinaryWriter(Stream output, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | Stream to which output should be written. |
Encoding | encoding | Output encoding. |
Remarks
Uses the endianness of the system.
EndianBinaryWriter(Stream, Encoding, Endian)
Initializes an instance of the EndianBinaryWriter class.
Declaration
public EndianBinaryWriter(Stream output, Encoding encoding, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | Stream to which output should be written. |
Encoding | encoding | Output encoding. |
Endian | endian | Endianness of the output. |
Properties
Endian
Gets or sets the endianness of the binary writer.
Declaration
public Endian Endian { get; protected set; }
Property Value
Type | Description |
---|---|
Endian |
Methods
Create(Stream, Endian)
Convenience method for creating a sufficient binary writer based on specified endian
.
Declaration
public static BinaryWriter Create(Stream output, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | Stream to which output should be written. |
Endian | endian | Endianness of the output. |
Returns
Type | Description |
---|---|
BinaryWriter | Binary writer with desired |
Create(Stream, Encoding, Endian)
Convenience method for creating a sufficient binary writer based on specified endian
.
Declaration
public static BinaryWriter Create(Stream output, Encoding encoding, Endian endian)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | Stream to which output should be written. |
Encoding | encoding | Output encoding. |
Endian | endian | Endianness of the output. |
Returns
Type | Description |
---|---|
BinaryWriter | Binary writer with desired |
Write(Double)
Declaration
public override void Write(double value)
Parameters
Type | Name | Description |
---|---|---|
Double | value |
Write(Int16)
Declaration
public override void Write(short value)
Parameters
Type | Name | Description |
---|---|---|
Int16 | value |
Write(Int32)
Declaration
public override void Write(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value |
Write(Int64)
Declaration
public override void Write(long value)
Parameters
Type | Name | Description |
---|---|---|
Int64 | value |
Write(Single)
Declaration
public override void Write(float value)
Parameters
Type | Name | Description |
---|---|---|
Single | value |
Write(UInt16)
Declaration
public override void Write(ushort value)
Parameters
Type | Name | Description |
---|---|---|
UInt16 | value |
Write(UInt32)
Declaration
public override void Write(uint value)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | value |
Write(UInt64)
Declaration
public override void Write(ulong value)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | value |