
Public Member Functions | |
| IArchive | read (self, TextIO stream) |
| Deserializes data from the specified input stream into an archive. | |
Interface for deserializing structured data from an input stream into an archive.
This interface defines the contract for reconstructing archive objects from serialized representations stored in a file, buffer, or other input source.
| IArchive read | ( | self, | |
| TextIO | stream ) |
Deserializes data from the specified input stream into an archive.
This method reads raw data from the provided input stream and converts it into a structured :class:IArchive object. The stream must be open, valid, and ready for reading before this function is called.
| stream | The input stream to read from. It should point to the beginning of a valid archive format. |