C# Class Sharpex2D.Network.Packages.PackageSerializer

Mostra file Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
Deserialize ( Stream stream ) : IBasePackage

Deserializes a package from the given stream.

Serialize ( IBasePackage package, Stream targetStream ) : void

Serializes the package in the given stream.

Private Methods

Method Description
PackageSerializer ( ) : System.IO

Initializes a new PackageSerializer class.

Method Details

Deserialize() public static method

Deserializes a package from the given stream.
public static Deserialize ( Stream stream ) : IBasePackage
stream System.IO.Stream The Stream.
return IBasePackage

Serialize() public static method

Serializes the package in the given stream.
public static Serialize ( IBasePackage package, Stream targetStream ) : void
package IBasePackage The Package.
targetStream System.IO.Stream The TargetStream
return void