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

Public Member Functions

 SurrogateSerializer (Type forType, Type declaredType, IProtoTypeSerializer rootTail)
 
MethodInfo GetConversion (bool toTail)
 
void Write (object value, ProtoWriter writer)
 Perform the steps necessary to serialize this data. More...
 
object Read (object value, ProtoReader source)
 Perform the steps necessary to deserialize this data. More...
 
- Public Member Functions inherited from ProtoBuf.Serializers.IProtoTypeSerializer
bool HasCallbacks (TypeModel.CallbackType callbackType)
 
void Callback (object value, TypeModel.CallbackType callbackType, SerializationContext context)
 

Properties

bool ReturnsValue [get]
 
bool RequiresOldValue [get]
 
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 15 of file SurrogateSerializer.cs.

Constructor & Destructor Documentation

ProtoBuf.Serializers.SurrogateSerializer.SurrogateSerializer ( Type  forType,
Type  declaredType,
IProtoTypeSerializer  rootTail 
)
inline

Definition at line 35 of file SurrogateSerializer.cs.

Member Function Documentation

MethodInfo ProtoBuf.Serializers.SurrogateSerializer.GetConversion ( bool  toTail)
inline

Definition at line 80 of file SurrogateSerializer.cs.

object ProtoBuf.Serializers.SurrogateSerializer.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 98 of file SurrogateSerializer.cs.

void ProtoBuf.Serializers.SurrogateSerializer.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 94 of file SurrogateSerializer.cs.

Property Documentation

Type ProtoBuf.Serializers.SurrogateSerializer.ExpectedType
get

Definition at line 30 of file SurrogateSerializer.cs.

bool ProtoBuf.Serializers.SurrogateSerializer.RequiresOldValue
get

Definition at line 29 of file SurrogateSerializer.cs.

bool ProtoBuf.Serializers.SurrogateSerializer.ReturnsValue
get

Definition at line 28 of file SurrogateSerializer.cs.


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