Length returns the combined length of all slices.
()
| 96 | |
| 97 | // Length returns the combined length of all slices. |
| 98 | func (b *WriteBuffer) Length() int { |
| 99 | b.mu.Lock() |
| 100 | defer b.mu.Unlock() |
| 101 | |
| 102 | return b.inner.Length() |
| 103 | } |
| 104 | |
| 105 | // ToByteSlice appends all bytes to the provided slice and returns it. |
| 106 | func (b *WriteBuffer) ToByteSlice() []byte { |