AppendSectionTo appends the section of the buffer to the provided slice and returns it.
(w io.Writer, offset, size int)
| 88 | |
| 89 | // AppendSectionTo appends the section of the buffer to the provided slice and returns it. |
| 90 | func (b *WriteBuffer) AppendSectionTo(w io.Writer, offset, size int) error { |
| 91 | b.mu.Lock() |
| 92 | defer b.mu.Unlock() |
| 93 | |
| 94 | return b.inner.AppendSectionTo(w, offset, size) |
| 95 | } |
| 96 | |
| 97 | // Length returns the combined length of all slices. |
| 98 | func (b *WriteBuffer) Length() int { |