C# Класс 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.
Наследование: ProtoBuf.Meta.TypeModel
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Deserialize() защищенный Метод

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. ///
Результат object

GetKeyImpl() защищенный Метод

The get key impl.
protected GetKeyImpl ( Type value ) : int
value System.Type /// The value. ///
Результат int

Serialize() защищенный Метод

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. ///
Результат void