Serializer.SetProtobufModel Method

Sets the protobuf model.
Protected Sub SetProtobufModel( _ 
ByVal protobufModel As RuntimeTypeModel
)
This language is not supported or no code example is available.
protected void SetProtobufModel( 
RuntimeTypeModel protobufModel 
)
This language is not supported or no code example is available.

Parameters

protobufModel
RuntimeTypeModel

Remarks
 

You can use this method to speedup Serializer initialization by using a protobuf model already compiled (for example when reading or writing a multiple files with the same protobuf declaration).

After calling this method both FillHeaderModel and FillModel methods will be skipped of course.

.NET Framework

Supported in: 4.8

In this article

Definition