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

Method IsMutable

buffer.go:347–349  ·  view source on GitHub ↗

* IsMutable returns a boolean value indicating if a LockedBuffer is mutable. */

()

Source from the content-addressed store, hash-verified

345IsMutable returns a boolean value indicating if a LockedBuffer is mutable.
346*/
347func (b *LockedBuffer) IsMutable() bool {
348 return b.Buffer.Mutable()
349}
350
351/*
352EqualTo performs a time-constant comparison on the contents of a LockedBuffer with a given buffer. A destroyed LockedBuffer will always return false.

Callers 10

TestNewBufferFunction · 0.80
TestNewBufferFromBytesFunction · 0.80
TestNewBufferFromReaderFunction · 0.80
TestNewBufferRandomFunction · 0.80
TestFreezeFunction · 0.80
TestMeltFunction · 0.80
TestDestroyFunction · 0.80
TestIsMutableFunction · 0.80

Calls 1

MutableMethod · 0.80

Tested by 10

TestNewBufferFunction · 0.64
TestNewBufferFromBytesFunction · 0.64
TestNewBufferFromReaderFunction · 0.64
TestNewBufferRandomFunction · 0.64
TestFreezeFunction · 0.64
TestMeltFunction · 0.64
TestDestroyFunction · 0.64
TestIsMutableFunction · 0.64