SerializationWriterWrite Method |
Name | Description | |
---|---|---|
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(Char) | Writes a Unicode character to the current stream and advances the current position of the stream in accordance with the Encoding used and the specific characters being written to the stream. (Inherited from BinaryWriter.) | |
Write(Double) | Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes. (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(Int16) | Writes a two-byte signed integer to the current stream and advances the stream position by two bytes. (Inherited from BinaryWriter.) | |
Write(UInt16) | Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes. (Inherited from BinaryWriter.) | |
Write(Int32) | Writes a four-byte signed integer to the current stream and advances the stream position by four bytes. (Inherited from BinaryWriter.) | |
Write(UInt32) | Writes a four-byte unsigned integer to the current stream and advances the stream position by four bytes. (Inherited from BinaryWriter.) | |
Write(Int64) | Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes. (Inherited from BinaryWriter.) | |
Write(UInt64) | Writes an eight-byte unsigned integer to the current stream and advances the stream position by eight bytes. (Inherited from BinaryWriter.) | |
Write(Single) | Writes a four-byte floating-point value to the current stream and advances the stream position by four bytes. (Inherited from BinaryWriter.) | |
Write(Boolean) |
Writes a Boolean[] into the stream.
Notes:
A null or empty array will take 1 byte.
Calls WriteOptimized(Boolean[]).
| |
Write(Byte) |
Writes a Byte[] into the stream.
Notes:
A null or empty array will take 1 byte.
(Overrides BinaryWriterWrite(Byte).) | |
Write(Char) |
Writes a Char[] into the stream.
Notes:
A null or empty array will take 1 byte.
(Overrides BinaryWriterWrite(Char).) | |
Write(ArrayList) |
Writes an ArrayList into the stream using the fewest number of bytes possible.
Stored Size: 1 byte upwards depending on data content
Notes:
A null Arraylist takes 1 byte.
An empty ArrayList takes 2 bytes.
The contents are stored using WriteOptimized(ArrayList) which should be used
if the ArrayList is guaranteed never to be null.
| |
Write(BitArray) |
Writes a BitArray value into the stream using the fewest number of bytes possible.
Stored Size: 1 byte upwards depending on data content
Notes:
A null BitArray takes 1 byte.
An empty BitArray takes 2 bytes.
| |
WriteK, V(DictionaryK, V) |
Writes a non-null generic Dictionary into the stream.
| |
WriteT(ListT) |
Writes a non-null generic List into the stream.
| |
Write(BitVector32) |
Writes a BitVector32 into the stream.
Stored Size: 4 bytes.
| |
Write(DateTime) |
Writes a DateTime value into the stream.
Stored Size: 8 bytes
| |
Write(DateTime) |
Writes a DateTime[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Decimal) |
Writes a Decimal[] into the stream.
Notes:
A null or empty array will take 1 byte.
Calls WriteOptimized(Decimal[]).
| |
Write(Double) |
Writes a Double[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Guid) |
Writes a Guid into the stream.
Stored Size: 16 bytes.
| |
Write(Guid) |
Writes a Guid[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Int16) |
Writes an Int16[]or a null into the stream.
Notes:
A null or empty array will take 1 byte.
Calls WriteOptimized(decimal[]).
| |
Write(Int32) |
Writes an Int32[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Int64) |
Writes an Int64[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Object) |
Writes an object[] into the stream.
Stored Size: 2 bytes upwards depending on data content
Notes:
A null object[] takes 1 byte.
An empty object[] takes 2 bytes.
The contents of the array will be stored optimized.
| |
Write(SByte) |
Writes an SByte[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Single) |
Writes a Single[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(String) |
Calls WriteOptimized(string).
This override to hide base BinaryWriter.Write(string).
(Overrides BinaryWriterWrite(String).) | |
Write(TimeSpan) |
Writes a TimeSpan value into the stream.
Stored Size: 8 bytes
| |
Write(TimeSpan) |
Writes a TimeSpan[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(UInt16) |
Writes a UInt16[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(UInt32) |
Writes a UInt32[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(UInt64) |
Writes a UInt64[] into the stream.
Notes:
A null or empty array will take 1 byte.
| |
Write(Type, Boolean) |
Stores a Type object into the stream.
Stored Size: Depends on the length of the Type's name and whether the fullyQualified parameter is set.
A null Type takes 1 byte.
| |
Write(IOwnedDataSerializable, Object) |
Allows any object implementing IOwnedDataSerializable to serialize itself
into this SerializationWriter.
A context may also be used to give the object an indication of what data
to store. As an example, using a BitVector32 gives a list of flags and
the object can conditionally store data depending on those flags.
| |
Write(Byte, Int32, Int32) | Writes a region of a byte array to the current stream. (Inherited from BinaryWriter.) | |
Write(Char, Int32, Int32) | Writes a section of a character array to the current stream, and advances the current position of the stream in accordance with the Encoding used and perhaps the specific characters being written to the stream. (Inherited from BinaryWriter.) |