tanya.memory.op

Set of operations on memory blocks.

Members

Functions

copy
void copy(void[] source, void[] target)

Copies source into target.

copyBackward
void copyBackward(void[] source, void[] target)

Copies starting from the end of source into the end of target.

equal
bool equal(void[] r1, void[] r2)

Compares two memory areas r1 and r2 for equality.

fill
void fill(void[] memory)

Fills memory with the single byte c.

find
inout(void[]) find(void[] haystack, ubyte needle)

Finds the first occurrence of needle in haystack if any.

findNullTerminated
inout(char[]) findNullTerminated(char[] haystack)

Looks for \0 in the haystack and returns the part of the haystack ahead of it.

Meta