MCPcopy
hub / github.com/segmentio/kafka-go / Codec

Method Codec

compress/compress.go:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25)
26
27func (c Compression) Codec() Codec {
28 if i := int(c); i >= 0 && i < len(Codecs) {
29 return Codecs[i]
30 }
31 return nil
32}
33
34func (c Compression) String() string {
35 if codec := c.Codec(); codec != nil {

Callers 6

StringMethod · 0.95
resolveCodecFunction · 0.80
readFromVersion1Method · 0.80
writeToVersion1Method · 0.80
readFromVersion2Method · 0.80
writeToVersion2Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected