Skip to content

Field Lz

openzl.ext.graphs.FieldLz

Bases: Graph

Compress the struct inputs using the FieldLZ codec with the default graphs

Inputs: input: TypeMask.Struct | TypeMask.Numeric

Source code in build-openzl/py/site-packages/openzl/ext/graphs.pyi
class FieldLz(Graph):
    """
    Compress the struct inputs using the FieldLZ codec with the default graphs

    Inputs:
    input: TypeMask.Struct | TypeMask.Numeric
    """

    def __init__(self, *, compression_level: int | None = None, literals_graph: ext.GraphID | None = None, tokens_graph: ext.GraphID | None = None, offsets_graph: ext.GraphID | None = None, extr_literal_lengths_graph: ext.GraphID | None = None, extra_match_lengths_graph: ext.GraphID | None = None) -> None: ...

    def __call__(self, arg: ext.Compressor, /) -> ext.GraphID: ...

    def parameterize(self, compressor: ext.Compressor) -> ext.GraphID: ...

    def set_destination(self, edge: ext.Edge) -> None: ...

    def set_multi_input_destination(self, edges: Sequence[ext.Edge]) -> None: ...

    @property
    def base_graph(self) -> ext.GraphID: ...

base_graph property

__call__(arg)

Source code in build-openzl/py/site-packages/openzl/ext/graphs.pyi
def __call__(self, arg: ext.Compressor, /) -> ext.GraphID: ...

__init__(*, compression_level=None, literals_graph=None, tokens_graph=None, offsets_graph=None, extr_literal_lengths_graph=None, extra_match_lengths_graph=None)

Source code in build-openzl/py/site-packages/openzl/ext/graphs.pyi
def __init__(self, *, compression_level: int | None = None, literals_graph: ext.GraphID | None = None, tokens_graph: ext.GraphID | None = None, offsets_graph: ext.GraphID | None = None, extr_literal_lengths_graph: ext.GraphID | None = None, extra_match_lengths_graph: ext.GraphID | None = None) -> None: ...

parameterize(compressor)

Source code in build-openzl/py/site-packages/openzl/ext/graphs.pyi
def parameterize(self, compressor: ext.Compressor) -> ext.GraphID: ...

set_destination(edge)

Source code in build-openzl/py/site-packages/openzl/ext/graphs.pyi
def set_destination(self, edge: ext.Edge) -> None: ...

set_multi_input_destination(edges)

Source code in build-openzl/py/site-packages/openzl/ext/graphs.pyi
def set_multi_input_destination(self, edges: Sequence[ext.Edge]) -> None: ...

openzl.ext.nodes.FieldLz

Bases: Node

Run an LZ compression that matches whole structs

Inputs: input: Type.Struct

Singleton Outputs: literals: Type.Struct tokens (2-bytes): Type.Struct offsets: Type.Numeric extra literal lengths: Type.Numeric extra match lengths: Type.Numeric

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
class FieldLz(Node):
    """
    Run an LZ compression that matches whole structs

    Inputs:
    input: Type.Struct


    Singleton Outputs:
    literals: Type.Struct
    tokens (2-bytes): Type.Struct
    offsets: Type.Numeric
    extra literal lengths: Type.Numeric
    extra match lengths: Type.Numeric
    """

    def __init__(self, compression_level: int | None = None) -> None: ...

    def __call__(self, compressor: ext.Compressor, literals: ext.GraphID | ext.graphs.Graph, tokens: ext.GraphID | ext.graphs.Graph, offsets: ext.GraphID | ext.graphs.Graph, extra_literal_lengths: ext.GraphID | ext.graphs.Graph, extra_match_lengths: ext.GraphID | ext.graphs.Graph) -> ext.GraphID: ...

    def run(self, edge: ext.Edge) -> list[ext.Edge]: ...

    def run_multi_input(self, edges: Sequence[ext.Edge]) -> list[ext.Edge]: ...

    def build_graph(self, compressor: ext.Compressor, successors: Sequence[ext.GraphID]) -> ext.GraphID: ...

    def parameterize(self, compressor: ext.Compressor) -> ext.NodeID: ...

    @property
    def base_node(self) -> ext.NodeID: ...

base_node property

__call__(compressor, literals, tokens, offsets, extra_literal_lengths, extra_match_lengths)

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
def __call__(self, compressor: ext.Compressor, literals: ext.GraphID | ext.graphs.Graph, tokens: ext.GraphID | ext.graphs.Graph, offsets: ext.GraphID | ext.graphs.Graph, extra_literal_lengths: ext.GraphID | ext.graphs.Graph, extra_match_lengths: ext.GraphID | ext.graphs.Graph) -> ext.GraphID: ...

__init__(compression_level=None)

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
def __init__(self, compression_level: int | None = None) -> None: ...

build_graph(compressor, successors)

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
def build_graph(self, compressor: ext.Compressor, successors: Sequence[ext.GraphID]) -> ext.GraphID: ...

parameterize(compressor)

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
def parameterize(self, compressor: ext.Compressor) -> ext.NodeID: ...

run(edge)

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
def run(self, edge: ext.Edge) -> list[ext.Edge]: ...

run_multi_input(edges)

Source code in build-openzl/py/site-packages/openzl/ext/nodes.pyi
def run_multi_input(self, edges: Sequence[ext.Edge]) -> list[ext.Edge]: ...