C# Class Sharpex2D.Network.Packages.PackageSerializer

Afficher le fichier Open project: ThuCommix/Sharpex2D

Méthodes publiques

Méthode 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

Méthode Description
PackageSerializer ( ) : System.IO

Initializes a new PackageSerializer class.

Method Details

Deserialize() public static méthode

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

Serialize() public static méthode

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
Résultat void