This is the Persistence class Base.Persistence class. Class to dump and restore the content of an object. Content of the object in XML representation. Memory size of the object in bytes. dumpContent(Compression=3) -> bytearray Dumps the content of the object, both the XML representation and the additional data files required, into a byte representation. Compression : int Set the data compression level in the range [0,9]. Set to 0 for no compression. restoreContent(obj) -> None Restore the content of the object from a byte representation as stored by `dumpContent`. It could be restored from any Python object implementing the buffer protocol. obj : buffer Object with buffer protocol support.