HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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