(wb *writeBuffer)
| 210 | } |
| 211 | |
| 212 | func (r topicMetadataRequestV6) writeTo(wb *writeBuffer) { |
| 213 | // communicate nil-ness to the broker by passing -1 as the array length. |
| 214 | // for this particular request, the broker interpets a zero length array |
| 215 | // as a request for no topics whereas a nil array is for all topics. |
| 216 | if r.Topics == nil { |
| 217 | wb.writeArrayLen(-1) |
| 218 | } else { |
| 219 | wb.writeStringArray([]string(r.Topics)) |
| 220 | } |
| 221 | wb.writeBool(r.AllowAutoTopicCreation) |
| 222 | } |
| 223 | |
| 224 | type metadataResponseV6 struct { |
| 225 | ThrottleTimeMs int32 |
nothing calls this directly
no test coverage detected