-
Notifications
You must be signed in to change notification settings - Fork 3
Memcpy
Ilya Kapitonau edited this page Aug 5, 2021
·
2 revisions
void* Memcpy(void* pDst, const void* pSrc, uint32_t size);
Equivalent of standard memmove
. Copies size
bytes from the object pointed to by pSrc
to the object pointed to by pDst
.
-
pDst
: pointer to the memory location to copy to -
pSrc
: pointer to the memory location to copy from -
size
: number of bytes to copy
pDst
- none
char src[] = "This is Env::Memcmp example";
Env::Memcpy(src, src + 8, 20);
Env::DocAddText("example", src);
Output:
"example": "Env::Memcmp example"