Registry / testing / prashantv-protectmem

prashantv-protectmem

JSON →
library0.0.0-20171002184600-e20412882b3agogounverified

Provides functions to allocate memory that can be protected to remove write or read access, intended for unit tests.

go get github.com/prashantv/protectmem
INSTALL
IMPORT
SIG · PRASHANTV-PROTECTM
P
prashantv-protectmem
testinggov0.0.0-20171002184600-e20412882b3a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

protectmem
github.com/prashantv/protectmem

Allocates a protected memory block.

package main import ( "fmt" "github.com/prashantv/protectmem" ) func main() { b, err := protectmem.Alloc(1024) if err != nil { panic(err) } fmt.Println("Allocated protected memory") }
Debug
Known issues
gotchaNot intended for production use; designed for unit tests only.
fix
Do not use in production code.
affects: all
Upgrade
Version history
0.0.0-20171002184600-e20412882b3alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
prashantv-protectmem — go get prashantv-protectmem · libregistry