Judy::Mem - Useful functions for interacting with memory
$String into a new C string.
The allocated string will be large enough to hold your perl string regardless of whether it uses multi-byte characters,
or has null characters.
You'll need to be careful to free this copy later when you're done with it.
$Ptr and copies it into a new perl string.
Doesn't do anything about Unicode,
or null characters.
if you have nulls in your data,
your copied string will be truncated.
Use the other function
Ptr2String2 which allows you to pass in the byte length.
Frees a pointer. You should be using this function on any pointer you previously allocated with String2Ptr or String2Ptr2.
Reads an integer out of memory. This is equivalent to:
Writes an integer to memory. This is equivalent to to C code:
*ptr = (Word_t)val;