Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ Compression
Method
Compression
protocol/record.go:25–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
)
24
25
func
(a Attributes) Compression() compress.Compression {
26
return
compress.Compression(a & 7)
27
}
28
29
func
(a Attributes) Transactional() bool {
30
return
(a & Transactional) != 0
Callers
8
String
Method · 0.95
readFromVersion1
Method · 0.80
writeToVersion1
Method · 0.80
readFromVersion2
Method · 0.80
writeToVersion2
Method · 0.80
testEncodeDecode
Function · 0.80
testCompressedMessages
Function · 0.80
TestMixedCompressedMessages
Function · 0.80
Calls
1
Compression
TypeAlias · 0.92
Tested by
3
testEncodeDecode
Function · 0.64
testCompressedMessages
Function · 0.64
TestMixedCompressedMessages
Function · 0.64