Module convert_stream

Module convert_stream 

Source
Expand description

Streaming converters for translating input byte streams into framed .dcmm output, and streaming .dcmm input into target format streams.

§Streaming & Memory Characteristics

Bounded-memory streaming (via 64 KiB chunks) is currently supported for UTF-8 inputs and pass-through DcMixed streams. While Dc formats are architecturally designed to be streamable representations in principle (and capable of being transformed as streams), the current converter implementation buffers whole inputs for structured document formats (e.g. DcIntegerList, Sems, DcText, CscJournal) and non-DcMixed exports to perform document-level parsing and serialization.

Structs§

StreamConversionReceipt
Summary of a completed streaming conversion operation to DcMixed (.dcmm).
StreamExportReceipt
Summary of a completed streaming export operation from DcMixed (.dcmm) to a target format.

Functions§

stream_dcmfile_to_writer
Streams a .dcmm file on disk to a writer in the specified SupportedDcOutputFormat.
stream_dcmreader_to_writer
Streams a .dcmm source Read to a writer in the specified SupportedDcOutputFormat.
stream_file_to_dcmwriter
Streams an input file to a framed .dcmm writer.
stream_reader_to_dcmwriter
Streams an input Read source to a framed .dcmm writer.