SerializationWriterWrite Method |
Name | Description | |
---|---|---|
Write(Boolean) | (Inherited from BinaryWriter.) | |
Write(Byte) | (Inherited from BinaryWriter.) | |
Write(SByte) | (Inherited from BinaryWriter.) | |
Write(Char) | (Inherited from BinaryWriter.) | |
Write(Double) | (Inherited from BinaryWriter.) | |
Write(Decimal) | (Inherited from BinaryWriter.) | |
Write(Int16) | (Inherited from BinaryWriter.) | |
Write(UInt16) | (Inherited from BinaryWriter.) | |
Write(Int32) | (Inherited from BinaryWriter.) | |
Write(UInt32) | (Inherited from BinaryWriter.) | |
Write(Int64) | (Inherited from BinaryWriter.) | |
Write(UInt64) | (Inherited from BinaryWriter.) | |
Write(Single) | (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) | (Inherited from BinaryWriter.) | |
Write(Char, Int32, Int32) | (Inherited from BinaryWriter.) |