Module tanya.memory.op

Set of operations on memory blocks.

Functions

NameDescription
copy(source, target) Copies source into target.
copyBackward(source, target) Copies starting from the end of source into the end of target.
equal(r1, r2) Compares two memory areas r1 and r2 for equality.
fill(memory) Fills memory with the single byte c.
find(haystack, needle) Finds the first occurrence of needle in haystack if any.
findNullTerminated(haystack) Looks for \0 in the haystack and returns the part of the haystack ahead of it.