MCPcopy
hub / github.com/awnumar/memguard / Mutable

Method Mutable

core/buffer.go:249–253  ·  view source on GitHub ↗

Mutable returns true if the buffer is mutable.

()

Source from the content-addressed store, hash-verified

247
248// Mutable returns true if the buffer is mutable.
249func (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
256func (b *Buffer) isDestroyed() bool {

Callers 2

TestBufferStateFunction · 0.95
IsMutableMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestBufferStateFunction · 0.76