Mutable returns true if the buffer is mutable.
()
| 247 | |
| 248 | // Mutable returns true if the buffer is mutable. |
| 249 | func (b *Buffer) Mutable() bool { |
| 250 | b.RLock() |
| 251 | defer b.RUnlock() |
| 252 | return b.mutable |
| 253 | } |
| 254 | |
| 255 | // isDestroyed returns true if the buffer is destroyed |
| 256 | func (b *Buffer) isDestroyed() bool { |
no outgoing calls