The EndianBinaryWriter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EndianBinaryWriter |
Methods
Name | Description | |
---|---|---|
Close | Closes the current BinaryWriter and the underlying stream. (Inherited from BinaryWriter.) | |
Dispose | Releases the unmanaged resources used by the BinaryWriter and optionally releases the managed resources. (Inherited from BinaryWriter.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
Flush | Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. (Inherited from BinaryWriter.) | |
GetHashCode | 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.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Seek | Sets the position within the current stream. (Inherited from BinaryWriter.) | |
ToString | (Inherited from Object.) | |
Write(Boolean) | Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true. (Inherited from BinaryWriter.) | |
Write(Byte) | Writes an unsigned byte to the current stream and advances the stream position by one byte. (Inherited from BinaryWriter.) | |
Write(SByte) | Writes a signed byte to the current stream and advances the stream position by one byte. (Inherited from BinaryWriter.) | |
Write(array<Byte>[]()[][]) | Writes a byte array to the underlying stream. (Inherited from BinaryWriter.) | |
Write(Decimal) | Writes a decimal value to the current stream and advances the stream position by sixteen bytes. (Inherited from BinaryWriter.) | |
Write(Char) |
Method Write
(Overrides BinaryWriter..::..Write(Char).) | |
Write(array<Char>[]()[][]) |
Method Write
(Overrides BinaryWriter..::..Write(array<Char>[]()[][]).) | |
Write(Double) |
Method Write
(Overrides BinaryWriter..::..Write(Double).) | |
Write(Int16) |
Method Write
(Overrides BinaryWriter..::..Write(Int16).) | |
Write(Int32) |
Method Write
(Overrides BinaryWriter..::..Write(Int32).) | |
Write(Int64) |
Method Write
(Overrides BinaryWriter..::..Write(Int64).) | |
Write(Single) |
Method Write
(Overrides BinaryWriter..::..Write(Single).) | |
Write(String) |
Method Write, writes a string to the output using the WriteString16
method.
(Overrides BinaryWriter..::..Write(String).) | |
Write(UInt16) |
Method Write
(Overrides BinaryWriter..::..Write(UInt16).) | |
Write(UInt32) |
Method Write
(Overrides BinaryWriter..::..Write(UInt32).) | |
Write(UInt64) |
Method Write
(Overrides BinaryWriter..::..Write(UInt64).) | |
Write(array<Byte>[]()[][], Int32, Int32) | Writes a region of a byte array to the current stream. (Inherited from BinaryWriter.) | |
Write(array<Char>[]()[][], Int32, Int32) |
Method Write
(Overrides BinaryWriter..::..Write(array<Char>[]()[][], Int32, Int32).) | |
Write7BitEncodedInt | Writes a 32-bit integer in a compressed format. (Inherited from BinaryWriter.) | |
WriteString16 |
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.
| |
WriteString32 |
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
Name | Description | |
---|---|---|
MAXSTRINGLEN | ||
OutStream | Holds the underlying stream. (Inherited from BinaryWriter.) |
Properties
Name | Description | |
---|---|---|
BaseStream | Gets the underlying stream of the BinaryWriter. (Inherited from BinaryWriter.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
System#IDisposable#Dispose | (Inherited from BinaryWriter.) |