18#ifndef __MEMORYBLOCK_H
19#define __MEMORYBLOCK_H
51 static void *
set(
void *dest,
int ch,
unsigned count);
62 static Size copy(
void *dest,
const void *src,
Size count);
84 static bool compare(
const void *p1,
const void *p2,
const Size count);
95 static bool compare(
const char *p1,
const char *p2,
const Size count = 0);
Memory block operations class.
static void * set(void *dest, int ch, unsigned count)
Fill memory with a constant byte.
static Size copy(void *dest, const void *src, Size count)
Copy memory from one place to another.
static bool compare(const void *p1, const void *p2, const Size count)
Compare memory.
unsigned int Size
Any sane size indicator cannot go negative.