HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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.