spkg: Add RtlMemSet() and RtlMemCpy()

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 10:09:06 +00:00
parent 912d262318
commit 1eb4f9dde6
3 changed files with 90 additions and 0 deletions
+22
View File
@@ -39,4 +39,26 @@ LONG RtlMemCmp(const VOID *Buffer1, const VOID *Buffer2, USIZE Length);
*/
BOOLEAN RtlStrEq(const CHAR *String1, const CHAR *String2);
/*
* Fill n bytes of a buffer with a value
*
* @Buffer: Pointer to buffer to fill
* @SetValue: Value to fill with
* @Length: Number of bytes to fill
*
* Returns @Buffer on success, otherwise NULL on failure
*/
VOID *RtlMemSet(VOID *Buffer, LONG SetValue, USIZE Length);
/*
* Copy n bytes of one buffer to another
*
* @Dest: Destination buffer
* @Soruce: Source buffer
* @Length: Length of buffers
*
* Returns @Dest on suucess, otherwise NULL on failure
*/
VOID *RtlMemCpy(VOID *Dest, const VOID *Source, USIZE Length);
#endif /* !_SPKG_STRING_H_ */