The EndianBinaryWriter type exposes the following members.

Constructors

  NameDescription
Public methodEndianBinaryWriter

Methods

  NameDescription
Public methodClose
Closes the current BinaryWriter and the underlying stream.
(Inherited from BinaryWriter.)
Protected methodDispose
Releases the unmanaged resources used by the BinaryWriter and optionally releases the managed resources.
(Inherited from BinaryWriter.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
(Inherited from BinaryWriter.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSeek
Sets the position within the current stream.
(Inherited from BinaryWriter.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWrite(Boolean)
Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true.
(Inherited from BinaryWriter.)
Public methodWrite(Byte)
Writes an unsigned byte to the current stream and advances the stream position by one byte.
(Inherited from BinaryWriter.)
Public methodWrite(SByte)
Writes a signed byte to the current stream and advances the stream position by one byte.
(Inherited from BinaryWriter.)
Public methodWrite(array<Byte>[]()[][])
Writes a byte array to the underlying stream.
(Inherited from BinaryWriter.)
Public methodWrite(Decimal)
Writes a decimal value to the current stream and advances the stream position by sixteen bytes.
(Inherited from BinaryWriter.)
Public methodWrite(Char)
Method Write
(Overrides BinaryWriter..::..Write(Char).)
Public methodWrite(array<Char>[]()[][])
Method Write
(Overrides BinaryWriter..::..Write(array<Char>[]()[][]).)
Public methodWrite(Double)
Method Write
(Overrides BinaryWriter..::..Write(Double).)
Public methodWrite(Int16)
Method Write
(Overrides BinaryWriter..::..Write(Int16).)
Public methodWrite(Int32)
Method Write
(Overrides BinaryWriter..::..Write(Int32).)
Public methodWrite(Int64)
Method Write
(Overrides BinaryWriter..::..Write(Int64).)
Public methodWrite(Single)
Method Write
(Overrides BinaryWriter..::..Write(Single).)
Public methodWrite(String)
Method Write, writes a string to the output using the WriteString16 method.
(Overrides BinaryWriter..::..Write(String).)
Public methodWrite(UInt16)
Method Write
(Overrides BinaryWriter..::..Write(UInt16).)
Public methodWrite(UInt32)
Method Write
(Overrides BinaryWriter..::..Write(UInt32).)
Public methodWrite(UInt64)
Method Write
(Overrides BinaryWriter..::..Write(UInt64).)
Public methodWrite(array<Byte>[]()[][], Int32, Int32)
Writes a region of a byte array to the current stream.
(Inherited from BinaryWriter.)
Public methodWrite(array<Char>[]()[][], Int32, Int32)
Method Write
(Overrides BinaryWriter..::..Write(array<Char>[]()[][], Int32, Int32).)
Protected methodWrite7BitEncodedInt
Writes a 32-bit integer in a compressed format.
(Inherited from BinaryWriter.)
Public methodWriteString16
Method WriteString16, writes a string to the output using the Java standard modified UTF-8 encoding with an unsigned short value written first to indicate the length of the encoded data, the short is read as an unsigned value so the max amount of data this method can write is 65535 encoded bytes. Unlike the WriteString32 method this method does not encode the length value to -1 if the string is null, this is to match the behaviour of the Java DataOuputStream class's writeUTF method. Because modified UTF-8 encding can result in a number of bytes greater that the size of the String this method must first check that the encoding proces will not result in a value that cannot be written becuase it is greater than the max value of an unsigned short.
Public methodWriteString32
Method WriteString32, writes a string to the output using the Openwire standard modified UTF-8 encoding which an int value written first to indicate the length of the encoded data, the int is read as an signed value so the max amount of data this method can write is 2^31 encoded bytes. In the case of a null value being passed this method writes a -1 to the stream to indicate that the string is null. Because modified UTF-8 encding can result in a number of bytes greater that the size of the String this method must first check that the encoding proces will not result in a value that cannot be written becuase it is greater than the max value of an int.

Fields

  NameDescription
Public fieldStatic memberMAXSTRINGLEN
Protected fieldOutStream
Holds the underlying stream.
(Inherited from BinaryWriter.)

Properties

  NameDescription
Public propertyBaseStream
Gets the underlying stream of the BinaryWriter.
(Inherited from BinaryWriter.)

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodSystem#IDisposable#Dispose (Inherited from BinaryWriter.)

See Also