HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulecryptonite-0.30Haskell2010

Crypto.Number.Serialize.Internal.LE

Fast serialization primitives for integer using raw pointers (little endian)

Synopsis
  • Packagecryptonite-0.30
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLE.hs
valuei2osp :: Integer -> Ptr Word8 -> Int -> IO Int

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