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

Function zstd_encode

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

Source from the content-addressed store, hash-verified

313
314
315def zstd_encode(payload):
316 if not zstd:
317 raise NotImplementedError("Zstd codec is not available")
318 return zstd.ZstdCompressor().compress(payload)
319
320
321def zstd_decode(payload):

Callers 3

test_zstdFunction · 0.90
test_zstd_multi_frameFunction · 0.90
_maybe_compressMethod · 0.90

Calls

no outgoing calls

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…