Skip to main content

Module wire

Module wire 

Source
Expand description

Outer wire framing for groupcompress blocks.

The over-the-wire form prepends a small text header with one record per contained factory, then the inner [GroupCompressBlock] payload. This module parses just the header so the manager-side Python wrapper can keep orchestrating the block construction itself.

See bzrformats.groupcompress._LazyGroupContentManager.from_bytes for the Python original.

Structs§

WireFactory
One factory record described by the wire header.
WireFrame
Parsed result of the outer wire frame: the factory records plus the byte range of the inner GroupCompressBlock payload within the input slice.

Enums§

Error

Functions§

build_header_lines
Build the per-factory header bytes consumed by the wire format.
build_wire_prefix
Build the framing prefix for the wire format: the storage-kind line, the three length lines, and the zlib-compressed header bytes.
parse_wire
Parse the outer wire framing of a groupcompress block.