![]() Then, some additional methods/properties, such as FlushBuffer for binary serializer or RootValue for XML serializer are also had to be used to achieve format specific needs however they are designed to be usable at the same routine level, where serializer objects are created/destroyed.įollowing is the very simple example, which shows how to serialize and de-serialize TPoint value using XML: First of all, it constructors, which takes different arguments for different formats. However, its important to note, that format specific serializer objects has some additional, non-common, stuff. The library is designed so, that interfaces of these common base classes are sufficient for most usage, and its recommended to be used as a parameter types of various custom MySerialize/ MyDeserialize methods. As well, de-serializer objects descends from TDeserializer common base class. Serializer objects descends from common TSerializer base class, which declare common serialization methods and properties. These helper objects should be created (and later destroyed) by the user. Binary serialization is performed by TBinarySerializer and TBinaryDeserializer objects. ![]() JSON serialization is performed by TJsonSerializer and TJsonDeserializer object,.XML serialization is performed by TXmlSerializer and TXmlDeserializer object,.Such objects are implemented for every output format: ![]() Serialization process is controlled by special serializer/de-serializer objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |