Fill a pointer with the little endian binary representation of an integer
If the room available ptrSz is less than the number of bytes needed,
0 is returned. Likewise if a parameter is invalid, 0 is returned.
Returns the number of bytes written
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulecrypton-1.0.4Haskell2010
Fast serialization primitives for integer using raw pointers (little endian)
Fill a pointer with the little endian binary representation of an integer
If the room available ptrSz is less than the number of bytes needed,
0 is returned. Likewise if a parameter is invalid, 0 is returned.
Returns the number of bytes written
Similar to i2osp, except it will pad any remaining space with zero.
Transform a little endian binary integer representation pointed by a pointer and a size into an integer