Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dpkp/kafka-python
/ encode
Method
encode
kafka/protocol/old/types.py:40–41 ·
view source on GitHub ↗
(cls, value)
Source
from the content-addressed store, hash-verified
38
39
@classmethod
40
def
encode(cls, value):
41
return
_pack(cls._pack, value)
42
43
@classmethod
44
def
decode(cls, data):
Callers
15
_join
Method · 0.45
heartbeat
Method · 0.45
test_gzip
Function · 0.45
test_snappy
Function · 0.45
test_lz4
Function · 0.45
test_lz4_old
Function · 0.45
test_lz4_incremental
Function · 0.45
test_zstd
Function · 0.45
_encode_response
Method · 0.45
test_metadata
Method · 0.45
test_kafka_9212_stale_epoch_sanitized_on_pre_v9_response
Method · 0.45
test_kafka_9212_v9_response_trusted
Method · 0.45
Calls
1
_pack
Function · 0.85
Tested by
15
_join
Method · 0.36
heartbeat
Method · 0.36
test_gzip
Function · 0.36
test_snappy
Function · 0.36
test_lz4
Function · 0.36
test_lz4_old
Function · 0.36
test_lz4_incremental
Function · 0.36
test_zstd
Function · 0.36
test_metadata
Method · 0.36
test_kafka_9212_stale_epoch_sanitized_on_pre_v9_response
Method · 0.36
test_kafka_9212_v9_response_trusted
Method · 0.36
_apply
Method · 0.36