HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulememory-0.18.0Haskell2010

Data.Memory.PtrMethods

methods to manipulate raw memory representation

  • 9 values
  • Packagememory-0.18.0
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePtrMethods.hs
valuememXor :: Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
#

xor bytes from source1 and source2 to destination

d = s1 xor s2

s1, nor s2 are modified unless d point to s1 or s2

valuememConstEqual :: Ptr Word8 -> Ptr Word8 -> Int -> IO Bool
#

A constant time equality test for 2 Memory buffers

compared to normal equality function, this function will go over all the bytes present before yielding a result even when knowing the overall result early in the processing.