MCPcopy Create free account
hub / github.com/libgit2/pygit2 / write

Method write

pygit2/filter.py:89–107  ·  view source on GitHub ↗

Write input `data` to this filter. `write()` may be called multiple times per stream. Parameters: data: Input data. src: The source of the filtered blob. write_next: The ``write()`` method of the next filter in the chain. Filtered out

(
        self, data: bytes, src: FilterSource, write_next: Callable[[bytes], None]
    )

Source from the content-addressed store, hash-verified

87 """
88
89 def write(
90 self, data: bytes, src: FilterSource, write_next: Callable[[bytes], None]
91 ) -> None:
92 """
93 Write input `data` to this filter.
94
95 `write()` may be called multiple times per stream.
96
97 Parameters:
98
99 data: Input data.
100
101 src: The source of the filtered blob.
102
103 write_next: The ``write()`` method of the next filter in the chain.
104 Filtered output data should be written to `write_next` whenever it is
105 available.
106 """
107 write_next(data)
108
109 def close(self, write_next: Callable[[bytes], None]) -> None:
110 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected