C# Class Protogame.CompiledAssetSerializer

This is a Protobuf serializer that serializes and deserializes the CompiledAsset class.
This code is generated from the precompile tool, decompiled with ILSpy and copied back into the Protogame code base. This is done so that we can serialize and deserialize on mobile platforms and so that we don't introduce a new DLL from the result of precompile. If the structure of CompiledAsset, PlatformData or TargetPlatform ever changes, this code will need to be regenerated.
Inheritance: ProtoBuf.Meta.TypeModel
Afficher le fichier Open project: RedpointGames/Protogame Class Usage Examples

Méthodes protégées

Méthode Description
Deserialize ( int num, object obj, ProtoBuf.ProtoReader protoReader ) : object

The deserialize.

GetKeyImpl ( Type value ) : int

The get key impl.

Serialize ( int num, object obj, ProtoWriter protoWriter ) : void

The serialize.

Private Methods

Méthode Description
Read ( CompiledAsset compiledAsset, ProtoBuf.ProtoReader protoReader ) : CompiledAsset

The read.

Read ( PlatformData platformData, ProtoBuf.ProtoReader protoReader ) : PlatformData

The read.

Read ( TargetPlatform targetPlatform, ProtoBuf.ProtoReader protoReader ) : TargetPlatform

The read.

Write ( CompiledAsset compiledAsset, ProtoWriter protoWriter ) : void

The write.

Write ( PlatformData platformData, ProtoWriter writer ) : void

The write.

Write ( TargetPlatform targetPlatform, ProtoWriter writer ) : void

The write.

_2 ( object obj, ProtoBuf.ProtoReader protoReader ) : object

The _2.

Method Details

Deserialize() protected méthode

The deserialize.
protected Deserialize ( int num, object obj, ProtoBuf.ProtoReader protoReader ) : object
num int /// The num. ///
obj object /// The obj. ///
protoReader ProtoBuf.ProtoReader /// The proto reader. ///
Résultat object

GetKeyImpl() protected méthode

The get key impl.
protected GetKeyImpl ( Type value ) : int
value System.Type /// The value. ///
Résultat int

Serialize() protected méthode

The serialize.
protected Serialize ( int num, object obj, ProtoWriter protoWriter ) : void
num int /// The num. ///
obj object /// The obj. ///
protoWriter ProtoBuf.ProtoWriter /// The proto writer. ///
Résultat void