1from abc
import ABC, abstractmethod
2from typing
import TextIO
4from ids_peak_common.serialization.iarchive
import IArchive
10 Interface for serializing data to an output stream.
12 This interface defines a contract for writing structured or binary data
13 into an output stream.
15 Implementations of this interface are responsible for formatting and
16 writing the contents of one or more archives to a given output destination.
18 @ingroup ids_peak_common_python_serialization
20 @since ids_peak_common 1.1
24 def write(self, archive: IArchive, stream: TextIO) ->
None:
27 Serializes data and writes it to the specified output stream.
29 @param archive: The archive which will be written to the output.
30 @param stream: The output stream (e.g., file or buffer) to which
31 serialized data will be written.
33 @since ids_peak_common 1.1
Interface for serializing data to an output stream.
None write(self, IArchive archive, TextIO stream)
Serializes data and writes it to the specified output stream.