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

Method encode

update_features_request.go:62–76  ·  view source on GitHub ↗
(pe packetEncoder)

Source from the content-addressed store, hash-verified

60}
61
62func (r *UpdateFeaturesRequest) encode(pe packetEncoder) error {
63 pe.putDurationMs(r.Timeout)
64
65 if err := pe.putArrayLength(len(r.FeatureUpdates)); err != nil {
66 return err
67 }
68 for i := range r.FeatureUpdates {
69 if err := r.FeatureUpdates[i].encode(pe); err != nil {
70 return err
71 }
72 }
73
74 pe.putEmptyTaggedFieldArray()
75 return nil
76}
77
78func (r *UpdateFeaturesRequest) decode(pd packetDecoder, version int16) (err error) {
79 if r.Timeout, err = pd.getDurationMs(); err != nil {

Callers

nothing calls this directly

Calls 4

putDurationMsMethod · 0.65
putArrayLengthMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected