HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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.