Serializer Class

Base class that defines the protobuf model for the Eyeshot proprietary file format.
Public MustInherit Class Serializer
This language is not supported or no code example is available.
public abstract class Serializer
This language is not supported or no code example is available.
Name Description
Protected constructor Serializer() Empty constructor for deserialization purpose only.
Top
Name Description
Internal protected (Protected Friend) property HeaderTag During the serialization it represents the custom tag, during the deserialization it represents the file header tag.
Internal protected (Protected Friend) property HeaderVersion During the serialization it represents the LastVersion, during the deserialization it represents the file header version.
Public property Log Gets the list of errors and warnings generated during the serialization process.
Public property Model The ProtoBuf.Meta.RuntimeTypeModel that contains the object types that must be serialized.
Top
Methods
 
Name Description
Protected method AddReferenceIdField(MetaType)
Public method Static AddToCache(ISurrogateWithReferenceId, object) For internal use only. Adds the specified key and value to the serializer cache for the current thread during the serialization process.
Public method Static AddToCache(object, ISurrogateWithReferenceId) For internal use only. Adds the specified key and value to the serializer cache for the current thread during the serialization process.
Internal protected (Protected Friend) method CompileModel() Compile protobuf model in place for better performance and freeze it. This method can be used when all types are known beforehand.
Public method Contains(Type) Checks if the type is contained in the serializer model.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method FillHeaderModel() Initialize the protobuf model for the file header.
Protected method FillModel() Initialize the protobuf model for the Eyeshot proprietary file format.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static GetCachedObject(ISurrogateWithReferenceId) For internal use only. Gets the object associated with the specified ISurrogateWithReferenceId.
Public method Static GetCachedObjectWithReferenceId(object) For internal use only. Gets the ISurrogateWithReferenceId associated with the specified object for the current thread.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType(string) Gets the Type from an assembly qualified name.
Protected method GetTypeForObject(string) Gets the type of an object starting from the assembly name.
Protected method InitializeModel(bool)
Public method Static IsValidVersion(int) Checks if a version is a valid Eyeshot proprietary file format version.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ModelIsCompiled() Indicates whether the protobuf model is already compiled or not.
Public method Static ResetCache() For internal use only. Resets the cache for the current thread.
Protected method ResetModel() Resets the protobuf model.
Public method Static ResizeCache(int) Resizes the cache for object graph reference handling.
Protected method SetProtobufModel(RuntimeTypeModel) Sets the protobuf model.
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method WriteLog(string) Writes a message into the log.
Top
Fields
 
Name Description
Public field Static FirstVersion Gets the first supported Eyeshot proprietary file format version.
Public field Static LastVersion Gets the last supported Eyeshot proprietary file format version.
Top

.NET Framework

Supported in: 4.8

In this article

Definition