Click or drag to resize

SerializationWriterWrite Method

Overload List
  NameDescription
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(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.)
Public methodWrite(Double)
Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes.
(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(Int16)
Writes a two-byte signed integer to the current stream and advances the stream position by two bytes.
(Inherited from BinaryWriter.)
Public methodWrite(UInt16)
Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.
(Inherited from BinaryWriter.)
Public methodWrite(Int32)
Writes a four-byte signed integer to the current stream and advances the stream position by four bytes.
(Inherited from BinaryWriter.)
Public methodWrite(UInt32)
Writes a four-byte unsigned integer to the current stream and advances the stream position by four bytes.
(Inherited from BinaryWriter.)
Public methodWrite(Int64)
Writes an eight-byte signed integer to the current stream and advances the stream position by eight bytes.
(Inherited from BinaryWriter.)
Public methodWrite(UInt64)
Writes an eight-byte unsigned integer to the current stream and advances the stream position by eight bytes.
(Inherited from BinaryWriter.)
Public methodWrite(Single)
Writes a four-byte floating-point value to the current stream and advances the stream position by four bytes.
(Inherited from BinaryWriter.)
Public methodWrite(Boolean)
Writes a Boolean[] into the stream. Notes: A null or empty array will take 1 byte. Calls WriteOptimized(Boolean[]).
Public methodWrite(Byte)
Writes a Byte[] into the stream. Notes: A null or empty array will take 1 byte.
(Overrides BinaryWriterWrite(Byte).)
Public methodWrite(Char)
Writes a Char[] into the stream. Notes: A null or empty array will take 1 byte.
(Overrides BinaryWriterWrite(Char).)
Public methodWrite(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.
Public methodWrite(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.
Public methodWriteK, V(DictionaryK, V)
Writes a non-null generic Dictionary into the stream.
Public methodWriteT(ListT)
Writes a non-null generic List into the stream.
Public methodWrite(BitVector32)
Writes a BitVector32 into the stream. Stored Size: 4 bytes.
Public methodWrite(DateTime)
Writes a DateTime value into the stream. Stored Size: 8 bytes
Public methodWrite(DateTime)
Writes a DateTime[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(Decimal)
Writes a Decimal[] into the stream. Notes: A null or empty array will take 1 byte. Calls WriteOptimized(Decimal[]).
Public methodWrite(Double)
Writes a Double[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(Guid)
Writes a Guid into the stream. Stored Size: 16 bytes.
Public methodWrite(Guid)
Writes a Guid[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(Int16)
Writes an Int16[]or a null into the stream. Notes: A null or empty array will take 1 byte. Calls WriteOptimized(decimal[]).
Public methodWrite(Int32)
Writes an Int32[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(Int64)
Writes an Int64[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(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.
Public methodWrite(SByte)
Writes an SByte[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(Single)
Writes a Single[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(String)
Calls WriteOptimized(string). This override to hide base BinaryWriter.Write(string).
(Overrides BinaryWriterWrite(String).)
Public methodWrite(TimeSpan)
Writes a TimeSpan value into the stream. Stored Size: 8 bytes
Public methodWrite(TimeSpan)
Writes a TimeSpan[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(UInt16)
Writes a UInt16[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(UInt32)
Writes a UInt32[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(UInt64)
Writes a UInt64[] into the stream. Notes: A null or empty array will take 1 byte.
Public methodWrite(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.
Public methodWrite(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.
Public methodWrite(Byte, Int32, Int32)
Writes a region of a byte array to the current stream.
(Inherited from BinaryWriter.)
Public methodWrite(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.)
Top
See Also