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.
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.
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.
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.
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.