Space Engineers
Public Member Functions | Properties | List of all members
ProtoBuf.Serializers.TypeSerializer Class Reference
Inheritance diagram for ProtoBuf.Serializers.TypeSerializer:
ProtoBuf.Serializers.IProtoTypeSerializer ProtoBuf.Serializers.IProtoSerializer

Public Member Functions

bool HasCallbacks (TypeModel.CallbackType callbackType)
 
 TypeSerializer (TypeModel model, Type forType, int[] fieldNumbers, IProtoSerializer[] serializers, MethodInfo[] baseCtorCallbacks, bool isRootType, bool useConstructor, CallbackSet callbacks, Type constructType, MethodInfo factory)
 
void Callback (object value, TypeModel.CallbackType callbackType, SerializationContext context)
 
void Write (object value, ProtoWriter dest)
 Perform the steps necessary to serialize this data. More...
 
object Read (object value, ProtoReader source)
 Perform the steps necessary to deserialize this data. More...
 

Properties

Type ExpectedType [get]
 
- Properties inherited from ProtoBuf.Serializers.IProtoSerializer
Type ExpectedType [get]
 The type that this serializer is intended to work for. More...
 
bool RequiresOldValue [get]
 Indicates whether a Read operation replaces the existing value, or extends the value. If false, the "value" parameter to Read is discarded, and should be passed in as null. More...
 
bool ReturnsValue [get]
 Now all Read operations return a value (although most do); if false no value should be expected. More...
 

Detailed Description

Definition at line 18 of file TypeSerializer.cs.

Constructor & Destructor Documentation

ProtoBuf.Serializers.TypeSerializer.TypeSerializer ( TypeModel  model,
Type  forType,
int[]  fieldNumbers,
IProtoSerializer[]  serializers,
MethodInfo[]  baseCtorCallbacks,
bool  isRootType,
bool  useConstructor,
CallbackSet  callbacks,
Type  constructType,
MethodInfo  factory 
)
inline

Definition at line 39 of file TypeSerializer.cs.

Member Function Documentation

void ProtoBuf.Serializers.TypeSerializer.Callback ( object  value,
TypeModel.CallbackType  callbackType,
SerializationContext  context 
)
inline

Implements ProtoBuf.Serializers.IProtoTypeSerializer.

Definition at line 140 of file TypeSerializer.cs.

bool ProtoBuf.Serializers.TypeSerializer.HasCallbacks ( TypeModel.CallbackType  callbackType)
inline

Implements ProtoBuf.Serializers.IProtoTypeSerializer.

Definition at line 20 of file TypeSerializer.cs.

object ProtoBuf.Serializers.TypeSerializer.Read ( object  value,
ProtoReader  source 
)
inline

Perform the steps necessary to deserialize this data.

Parameters
valueThe current value, if appropriate.
sourceThe reader providing the input data.
Returns
The updated / replacement value.

Implements ProtoBuf.Serializers.IProtoSerializer.

Definition at line 187 of file TypeSerializer.cs.

void ProtoBuf.Serializers.TypeSerializer.Write ( object  value,
ProtoWriter  dest 
)
inline

Perform the steps necessary to serialize this data.

Parameters
valueThe value to be serialized.
destThe writer entity that is accumulating the output data.

Implements ProtoBuf.Serializers.IProtoSerializer.

Definition at line 165 of file TypeSerializer.cs.

Property Documentation

Type ProtoBuf.Serializers.TypeSerializer.ExpectedType
get

Definition at line 32 of file TypeSerializer.cs.


The documentation for this class was generated from the following file: