C# Class AK.F1.Timing.Serialization.DecoratedObjectWriter

Writes objects to an underlying output stream that have been decorated with a TypeIdAttribute. This class cannot be inherited.
Inheritance: DisposableBase, IObjectWriter
Show file Open project: simoneb/ak-f1-timing Class Usage Examples

Private Properties

Property Type Description
AssertGraphHasNotBeenSeen void
CreateBinaryReader System.IO.BinaryReader
CreateBinaryWriter System.IO.BinaryWriter
CreateContext GraphContext
WriteBoolean void
WriteByte void
WriteChar void
WriteComplex void
WriteDBNull void
WriteDateTime void
WriteDecimal void
WriteDescendant void
WriteDouble void
WriteEmpty void
WriteGraph void
WriteInt16 void
WriteInt32 void
WriteInt64 void
WriteInt64WithComression void
WriteObjectTypeCode void
WritePrimitive void
WriteSByte void
WriteSingle void
WriteString void
WriteTimeSpan void
WriteUInt16 void
WriteUInt32 void
WriteUInt64 void
WriteUInt64WithCompression void

Public Methods

Method Description
DecoratedObjectWriter ( Stream output ) : System

Initialises a new instance of the DecoratedObjectWriter class and specifies the underlying output stream.

Write ( object graph ) : void

Protected Methods

Method Description
DisposeOfManagedResources ( ) : void

Private Methods

Method Description
AssertGraphHasNotBeenSeen ( object graph ) : void
CreateBinaryReader ( Stream input ) : BinaryReader

Creates a System.IO.BinaryReader suitable for reading data.

CreateBinaryWriter ( Stream output ) : BinaryWriter

Creates a System.IO.BinaryWriter suitable for writing data.

CreateContext ( object graph ) : GraphContext
WriteBoolean ( bool value ) : void
WriteByte ( byte value ) : void
WriteChar ( char value ) : void
WriteComplex ( GraphContext &context ) : void
WriteDBNull ( ) : void
WriteDateTime ( System.DateTime value ) : void
WriteDecimal ( decimal value ) : void
WriteDescendant ( object graph ) : void
WriteDouble ( double value ) : void
WriteEmpty ( ) : void
WriteGraph ( GraphContext &context ) : void
WriteInt16 ( short value ) : void
WriteInt32 ( int value ) : void
WriteInt64 ( long value ) : void
WriteInt64WithComression ( long value ) : void
WriteObjectTypeCode ( ObjectTypeCode value ) : void
WritePrimitive ( GraphContext &context ) : void
WriteSByte ( sbyte value ) : void
WriteSingle ( float value ) : void
WriteString ( string value ) : void
WriteTimeSpan ( System.TimeSpan value ) : void
WriteUInt16 ( ushort value ) : void
WriteUInt32 ( uint value ) : void
WriteUInt64 ( ulong value ) : void
WriteUInt64WithCompression ( ulong value ) : void

Method Details

DecoratedObjectWriter() public method

Initialises a new instance of the DecoratedObjectWriter class and specifies the underlying output stream.
/// Thrown when is . ///
public DecoratedObjectWriter ( Stream output ) : System
output Stream The output stream.
return System

DisposeOfManagedResources() protected method

protected DisposeOfManagedResources ( ) : void
return void

Write() public method

public Write ( object graph ) : void
graph object
return void