Fill a pointer with the big 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 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Modulecryptonite-0.30Haskell2010
Fast serialization primitives for integer using raw pointers
Fill a pointer with the big 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 big endian binary integer representation pointed by a pointer and a size into an integer