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

Method Data

core/buffer.go:104–106  ·  view source on GitHub ↗

Data returns a byte slice representing the memory region containing the data.

()

Source from the content-addressed store, hash-verified

102
103// Data returns a byte slice representing the memory region containing the data.
104func (b *Buffer) Data() []byte {
105 return b.data
106}
107
108// Inner returns a byte slice representing the entire inner memory pages. This should NOT be used unless you have a specific need.
109func (b *Buffer) Inner() []byte {

Callers 15

OpenFunction · 0.95
ViewMethod · 0.95
TestNewBufferFunction · 0.95
TestDataFunction · 0.95
TestDestroyFunction · 0.95
scrambleMethod · 0.95
TestBytesFunction · 0.80
BytesMethod · 0.80
NewEnclaveFunction · 0.80
SealFunction · 0.80
InitMethod · 0.80
RekeyMethod · 0.80

Calls

no outgoing calls

Tested by 10

TestNewBufferFunction · 0.76
TestDataFunction · 0.76
TestDestroyFunction · 0.76
TestBytesFunction · 0.64
TestSealFunction · 0.64
TestOpenFunction · 0.64
TestNewCofferFunction · 0.64
TestCofferInitFunction · 0.64
TestCofferViewFunction · 0.64
TestCofferRekeyFunction · 0.64