Ring1_Memory_copyFast
Copy Bytes from a source memory block to a target memory block.
Ring1_Result
Ring1_Memory_copyFast
(
void *p,
const void *q,
size_t n
)
This function copies
n
Bytes from a source memory block pointed to by
q
to a target memory block pointed to by
p
.
The memory blocks must not overlap or the behavior of this function is undefined. Use Ring1_Memory_copySlow to copy Bytes between overlapping memory blocks.
Parameter variables
p
- A pointer to the target memory block.
q
- A pointer to the source memory block.
n
- The number of Bytes to copy.
Return Values
Ring1_Result_Success
on success, Ring1_Result_Failure
on failure.
Post Conditions
If this function fails, then it sets the by-thread status variable.
Below is a list of failure conditions and the status codes indicating them.
Ring1_Status_InvalidArgument
-
if
p
and/orq
isNULL
If this function fails, neither p
nor p
is not dereferenced.