len returns the number of bytes written to the buffer.
()
| 47 | |
| 48 | // len returns the number of bytes written to the buffer. |
| 49 | func (b *buffer) len() int { |
| 50 | return len(*b) |
| 51 | } |
| 52 | |
| 53 | // append appends data to the buffer. |
| 54 | func (b *buffer) append(data ...byte) { |