(pe packetEncoder, version int16)
| 17 | } |
| 18 | |
| 19 | func (a *ApiVersionsResponseKey) encode(pe packetEncoder, version int16) (err error) { |
| 20 | a.Version = version |
| 21 | pe.putInt16(a.ApiKey) |
| 22 | |
| 23 | pe.putInt16(a.MinVersion) |
| 24 | |
| 25 | pe.putInt16(a.MaxVersion) |
| 26 | |
| 27 | if version >= 3 { |
| 28 | pe.putEmptyTaggedFieldArray() |
| 29 | } |
| 30 | |
| 31 | return nil |
| 32 | } |
| 33 | |
| 34 | func (a *ApiVersionsResponseKey) decode(pd packetDecoder, version int16) (err error) { |
| 35 | a.Version = version |
nothing calls this directly
no test coverage detected