#include <BytesWriter.h>
Static Public Member Functions | |
static void | ReadBytes (int &iDestination, const char *pSource, int iCount) |
static void | ReadBytes (DWORD &uDestination, const char *pSource, int iCount=4) |
static void | ReadBytes (WORD &uDestination, const char *pSource, int iCount=2) |
static void | WriteBytes (char *pDestination, int uSource, int iCount) |
static void | WriteBytes (char *pDestination, DWORD uSource, int iCount=4) |
static void | WriteBytes (char *pDestination, WORD uSource) |
static WORD | WriteSafeU16 (int uValue) |
static DWORD | WriteSafeU32 (DWORD uValue) |
Definition at line 36 of file BytesWriter.h.
static void ZipArchiveLib::CBytesWriter::ReadBytes | ( | WORD & | uDestination, | |
const char * | pSource, | |||
int | iCount = 2 | |||
) | [inline, static] |
Reads iCount bytes from pSource into pDestination.
[out] | uDestination | The buffer to retrieve data with byte-ordering depending on the machine. |
[in] | pSource | The buffer with little-endian ordered data. |
iCount | The number of bytes to read. |
Definition at line 53 of file BytesWriter.h.
static void ZipArchiveLib::CBytesWriter::WriteBytes | ( | char * | pDestination, | |
DWORD | uSource, | |||
int | iCount = 4 | |||
) | [inline, static] |
Writes iCount bytes from pSource into pDestination.
[out] | pDestination | The buffer to retrieve little-endian ordered data. |
[in] | uSource | The buffer with byte-ordering depending on the machine. |
iCount | The number of bytes to write. |
Definition at line 92 of file BytesWriter.h.