My machine is 64 b ... pack('NC',$size,$aKey).
If you are running Windows on Intel (90%+ are), then you would need 'V' which is 32-bit unsigned in VAX (little-endian) order.
Then size_t will equate to a 64-bit unsigned int which would be template 'Q'.
The simplest template would be 'J' which should work for 32-bit or 64-bit. (Excepting 32-bit perl's compiled for 64-bit ints.)
In reply to Re: Low-level version of Win32::API::Struct
by BrowserUk
in thread Low-level version of Win32::API::Struct
by sgv_81
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |