Create a new temporary buffer
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
xor bytes from source1 and source2 to destination
d = s1 xor s2
s1, nor s2 are modified unless d point to s1 or s2
xor bytes from source with a specific value to destination
d = replicate (sizeof s) v xor s
Copy a set number of bytes from src to dst
Set n number of bytes to the same value v
Reverse a set number of bytes from src to dst. Memory
locations should not overlap.
Check if two piece of memory are equals
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.
Compare two piece of memory and returns how they compare