C# Class YAMP.Deserializer

The deserializer class for helping in the serialization process.
Inheritance: IDisposable
显示文件 Open project: FlorianRappl/YAMP Class Usage Examples

Public Methods

Method Description
Create ( Byte content ) : Deserializer

Creates a new instance of the deserialization helper.

Dispose ( ) : void

Cleans up the mess.

GetBoolean ( ) : System.Boolean

Reads the next bytes as boolean.

GetBytes ( ) : Byte[]

Reads the next bytes as raw bytes.

GetDouble ( ) : Double

Reads the next bytes as double.

GetInt ( ) : Int32

Reads the next bytes as integer.

GetLong ( ) : System.Int64

Reads the next bytes as long.

GetScalar ( ) : ScalarValue

Reads the next bytes as scalar (2 doubles).

GetSingle ( ) : System.Single

Reads the next bytes as float.

GetString ( ) : String

Reads the next bytes as string.

GetValue ( ) : Value

Reads the next value.

Private Methods

Method Description
Deserializer ( Byte content ) : System

Method Details

Create() public static method

Creates a new instance of the deserialization helper.
public static Create ( Byte content ) : Deserializer
content Byte The content to deserialize.
return Deserializer

Dispose() public method

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

GetBoolean() public method

Reads the next bytes as boolean.
public GetBoolean ( ) : System.Boolean
return System.Boolean

GetBytes() public method

Reads the next bytes as raw bytes.
public GetBytes ( ) : Byte[]
return Byte[]

GetDouble() public method

Reads the next bytes as double.
public GetDouble ( ) : Double
return Double

GetInt() public method

Reads the next bytes as integer.
public GetInt ( ) : Int32
return System.Int32

GetLong() public method

Reads the next bytes as long.
public GetLong ( ) : System.Int64
return System.Int64

GetScalar() public method

Reads the next bytes as scalar (2 doubles).
public GetScalar ( ) : ScalarValue
return ScalarValue

GetSingle() public method

Reads the next bytes as float.
public GetSingle ( ) : System.Single
return System.Single

GetString() public method

Reads the next bytes as string.
public GetString ( ) : String
return String

GetValue() public method

Reads the next value.
public GetValue ( ) : Value
return Value