Len returns the number of bytes written to the buffer.
()
| 75 | |
| 76 | // Len returns the number of bytes written to the buffer. |
| 77 | func (b *buffer) Len() int { |
| 78 | return len(*b) |
| 79 | } |
| 80 | |
| 81 | // grow ensures that the buffer has at least n free bytes of capacity. |
| 82 | // It grows the buffer to the next power of two if necessary. |
no outgoing calls