(n int)
| 381 | } |
| 382 | |
| 383 | func newResponsesSection(n int) *responsesSection { |
| 384 | ret := &responsesSection{} |
| 385 | |
| 386 | enc := cbor.NewEncoder(&ret.buf) |
| 387 | if err := enc.EncodeArrayHeader(n); err != nil { |
| 388 | panic(err) |
| 389 | } |
| 390 | |
| 391 | return ret |
| 392 | } |
| 393 | |
| 394 | func (rs *responsesSection) addResponse(r Response) (int, int, error) { |
| 395 | offset := rs.buf.Len() |
no test coverage detected