Len returns the number of bytes of the unread portion of the buffer; b.Len() == len(b.Bytes()).
()
| 104 | // Len returns the number of bytes of the unread portion of the buffer; |
| 105 | // b.Len() == len(b.Bytes()). |
| 106 | func (b *Buffer) Len() int { return len(b.buf) - b.off } |
| 107 | |
| 108 | // Truncate discards all but the first n unread bytes from the buffer. |
| 109 | // It panics if n is negative or greater than the length of the buffer. |
no outgoing calls