Free invokes Buffer.Free() on each Buffer in the slice.
()
| 67 | |
| 68 | // Free invokes Buffer.Free() on each Buffer in the slice. |
| 69 | func (s BufferSlice) Free() { |
| 70 | for _, b := range s { |
| 71 | b.Free() |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | // CopyTo copies each of the underlying Buffer's data into the given buffer, |
| 76 | // returning the number of bytes copied. Has the same semantics as the copy |