reusable reports whether the node's buffer memory is owned by the LinkBuffer and can be recycled. Called during Release to decide if node.buf should be returned to mcache via free.
()
| 953 | // reusable reports whether the node's buffer memory is owned by the LinkBuffer and can be recycled. |
| 954 | // Called during Release to decide if node.buf should be returned to mcache via free. |
| 955 | func (node *linkBufferNode) reusable() bool { |
| 956 | return node.mode&flagUnmanaged == 0 |
| 957 | } |
| 958 | |
| 959 | // readExposed reports whether the node's buffer has been returned directly to user code |
| 960 | // via a zero-copy Reader method and may still be referenced externally. |
no outgoing calls