Files
vxunderground-VX-API/VX-API/ByteArrayToCharArray.cpp
T
2022-09-14 09:15:37 -05:00

17 lines
402 B
C++

#include "StringManipulation.h"
VOID ByteArrayToCharArrayA(_Inout_ PCHAR Destination, _In_ PBYTE Source, _In_ DWORD Length)
{
for (DWORD dwX = 0; dwX < Length; dwX++)
{
Destination[dwX] = (BYTE)Source[dwX];
}
}
VOID ByteArrayToCharArrayW(_Inout_ PWCHAR Destination, _In_ PBYTE Source, _In_ DWORD Length)
{
for (DWORD dwX = 0; dwX < Length; dwX++)
{
Destination[dwX] = (BYTE)Source[dwX];
}
}