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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleram-0.22.1Haskell2010

Data.Memory.PtrMethods

methods to manipulate raw memory representation

  • 9 values
  • Packageram-0.22.1
  • 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.