MCPcopy
hub / github.com/IBM/sarama / encode

Method encode

alter_configs_request.go:21–34  ·  view source on GitHub ↗
(pe packetEncoder)

Source from the content-addressed store, hash-verified

19}
20
21func (a *AlterConfigsRequest) encode(pe packetEncoder) error {
22 if err := pe.putArrayLength(len(a.Resources)); err != nil {
23 return err
24 }
25
26 for _, r := range a.Resources {
27 if err := r.encode(pe); err != nil {
28 return err
29 }
30 }
31
32 pe.putBool(a.ValidateOnly)
33 return nil
34}
35
36func (a *AlterConfigsRequest) decode(pd packetDecoder, version int16) error {
37 resourceCount, err := pd.getArrayLength()

Callers

nothing calls this directly

Calls 3

putArrayLengthMethod · 0.65
encodeMethod · 0.65
putBoolMethod · 0.65

Tested by

no test coverage detected