MCPcopy Create free account
hub / github.com/IBM/sarama / encode

Method encode

api_versions_response.go:62–73  ·  view source on GitHub ↗
(pe packetEncoder)

Source from the content-addressed store, hash-verified

60}
61
62func (f *SupportedFeatureKey) encode(pe packetEncoder) error {
63 if err := pe.putString(f.Name); err != nil {
64 return err
65 }
66
67 pe.putInt16(f.MinVersion)
68
69 pe.putInt16(f.MaxVersion)
70
71 pe.putEmptyTaggedFieldArray()
72 return nil
73}
74
75func (f *SupportedFeatureKey) decode(pd packetDecoder) (err error) {
76 if f.Name, err = pd.getString(); err != nil {

Callers

nothing calls this directly

Calls 3

putStringMethod · 0.65
putInt16Method · 0.65

Tested by

no test coverage detected