MCPcopy Create free account
hub / github.com/dpkp/kafka-python / zstd_decode

Function zstd_decode

kafka/codec.py:321–325  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

319
320
321def zstd_decode(payload):
322 if not zstd:
323 raise NotImplementedError("Zstd codec is not available")
324 with zstd.ZstdDecompressor().stream_reader(io.BytesIO(payload), read_across_frames=True) as reader:
325 return reader.read()

Callers 3

test_zstdFunction · 0.90
test_zstd_multi_frameFunction · 0.90
_maybe_uncompressMethod · 0.90

Calls 1

readMethod · 0.80

Tested by 2

test_zstdFunction · 0.72
test_zstd_multi_frameFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…