Registry / utility / malloc

malloc

JSON →
library1.5.2rbrubygemsunverified

Ruby extension for allocating memory and performing pointer manipulation with Hornetseye::Malloc.

gem install malloc
INSTALL
IMPORT
SIG · MALLOC
M
malloc
utilityrubyv1.5.2
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.

Hornetseye::Malloc
require 'malloc'

Allocate 1024 bytes, write and read a string

require 'malloc' m = Hornetseye::Malloc.new(1024) m.write('Hello') m.read(5)
Debug
Known issues
gotchaLow-level memory operations can cause segmentation faults
fix
Ensure proper bounds checking when reading/writing memory
affects: >= 1.0.0
Upgrade
Version history
1.5.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
malloc — gem install malloc · libregistry