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

Method Bytes

buffer.go:368–370  ·  view source on GitHub ↗

* Functions for representing the memory region as various data types. */ * Bytes returns a byte slice referencing the protected region of memory. */

()

Source from the content-addressed store, hash-verified

366Bytes returns a byte slice referencing the protected region of memory.
367*/
368func (b *LockedBuffer) Bytes() []byte {
369 return b.Buffer.Data()
370}
371
372/*
373Reader returns a Reader object referencing the protected region of memory.

Callers 15

CopyAtMethod · 0.95
MoveAtMethod · 0.95
WipeMethod · 0.95
SizeMethod · 0.95
EqualToMethod · 0.95
ReaderMethod · 0.95
StringMethod · 0.95
Uint16Method · 0.95
Uint32Method · 0.95
Uint64Method · 0.95
Int8Method · 0.95
Int16Method · 0.95

Calls 1

DataMethod · 0.80

Tested by 15

TestPurgeFunction · 0.64
TestPtrSafetyWithGCFunction · 0.64
TestNewBufferFunction · 0.64
TestNewBufferFromBytesFunction · 0.64
TestNewBufferFromReaderFunction · 0.64
TestNewBufferRandomFunction · 0.64
TestFreezeFunction · 0.64
TestMeltFunction · 0.64
TestSealFunction · 0.64
TestCopyFunction · 0.64
TestCopyAtFunction · 0.64