|
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...
|
|
|
Type | ExpectedType [get] |
|
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...
|
|
Definition at line 18 of file TypeSerializer.cs.
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 |
void ProtoBuf.Serializers.TypeSerializer.Callback |
( |
object |
value, |
|
|
TypeModel.CallbackType |
callbackType, |
|
|
SerializationContext |
context |
|
) |
| |
|
inline |
bool ProtoBuf.Serializers.TypeSerializer.HasCallbacks |
( |
TypeModel.CallbackType |
callbackType | ) |
|
|
inline |
object ProtoBuf.Serializers.TypeSerializer.Read |
( |
object |
value, |
|
|
ProtoReader |
source |
|
) |
| |
|
inline |
Perform the steps necessary to deserialize this data.
- Parameters
-
value | The current value, if appropriate. |
source | The 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 |
Type ProtoBuf.Serializers.TypeSerializer.ExpectedType |
|
get |
The documentation for this class was generated from the following file: