C# Class YAMP.Serializer

Helper class for the serialization process.
Inheritance: IDisposable
Mostra file Open project: FlorianRappl/YAMP Class Usage Examples

Public Methods

Method Description
Create ( ) : Serializer

Creates a new instance of the binary serializer helper.

Dispose ( ) : void

Cleans up the mess.

Serialize ( System.Boolean value ) : Serializer

Serializes a bool value.

Serialize ( Byte content ) : Serializer

Serializes a raw byte array value.

Serialize ( Double value ) : Serializer

Serializes a double value.

Serialize ( Int32 value ) : Serializer

Serializes an integer value.

Serialize ( System.Int64 value ) : Serializer

Serializes a long value.

Serialize ( ScalarValue value ) : Serializer

Serializes a scalar (2 doubles) value.

Serialize ( System.Single value ) : Serializer

Serializes a float value.

Serialize ( String value ) : Serializer

Serializes a string value.

Serialize ( Value value ) : Serializer

Serializes an arbitrary value.

Private Methods

Method Description
Serializer ( ) : System

Method Details

Create() public static method

Creates a new instance of the binary serializer helper.
public static Create ( ) : Serializer
return Serializer

Dispose() public method

Cleans up the mess.
public Dispose ( ) : void
return void

Serialize() public method

Serializes a bool value.
public Serialize ( System.Boolean value ) : Serializer
value System.Boolean The value to serialize.
return Serializer

Serialize() public method

Serializes a raw byte array value.
public Serialize ( Byte content ) : Serializer
content Byte The value to serialize.
return Serializer

Serialize() public method

Serializes a double value.
public Serialize ( Double value ) : Serializer
value Double The value to serialize.
return Serializer

Serialize() public method

Serializes an integer value.
public Serialize ( Int32 value ) : Serializer
value System.Int32 The value to serialize.
return Serializer

Serialize() public method

Serializes a long value.
public Serialize ( System.Int64 value ) : Serializer
value System.Int64 The value to serialize.
return Serializer

Serialize() public method

Serializes a scalar (2 doubles) value.
public Serialize ( ScalarValue value ) : Serializer
value ScalarValue The value to serialize.
return Serializer

Serialize() public method

Serializes a float value.
public Serialize ( System.Single value ) : Serializer
value System.Single The value to serialize.
return Serializer

Serialize() public method

Serializes a string value.
public Serialize ( String value ) : Serializer
value String The value to serialize.
return Serializer

Serialize() public method

Serializes an arbitrary value.
public Serialize ( Value value ) : Serializer
value Value The value to serialize.
return Serializer