Skip Navigation Links
Skip Navigation LinksHome > ZipArchive > How to Use > API Documentation

ZipArchiveLib::CBytesWriter Class Reference

#include <BytesWriter.h>

List of all members.


Static Public Member Functions

static void ReadBytes (ULONGLONG &uDestination, 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 ReadBytes (char *pDestination, const char *pSource, int iDestSize, int iCount)
static void WriteBytes (char *pDestination, const ULONGLONG &uSource, int iCount)
static void WriteBytes (char *pDestination, DWORD uSource, int iCount=4)
static void WriteBytes (char *pDestination, WORD uSource)
static WORD WriteSafeU16 (ULONGLONG uValue)
static WORD WriteSafeU16 (DWORD uValue)
static DWORD WriteSafeU32 (ZIP_SIZE_TYPE uValue)

Detailed Description

Provides implementation for various buffer operations depending on the current platform and configuration.

Member Function Documentation

static WORD ZipArchiveLib::CBytesWriter::WriteSafeU16 ( ULONGLONG  uValue  )  [inline, static]

Writes safely a 64-bit value to a 16-bit value. If the 64-bit value is larger than USHRT_MAX, then USHRT_MAX is written; otherwise the original value is written.

Parameters:
uValue The value to write.
Returns:
A safe value.

static WORD ZipArchiveLib::CBytesWriter::WriteSafeU16 ( DWORD  uValue  )  [inline, static]

Writes safely a 32-bit value to a 16-bit value. If the 32-bit value is larger than USHRT_MAX, then USHRT_MAX is written; otherwise the original value is written.

Parameters:
uValue The value to write.
Returns:
A safe value.

static DWORD ZipArchiveLib::CBytesWriter::WriteSafeU32 ( ZIP_SIZE_TYPE  uValue  )  [inline, static]

Writes safely a 64-bit value to a 32-bit value. If the 64-bit value is larger than UINT_MAX, then UINT_MAX is written; otherwise the original value is written.

Parameters:
uValue The value to write.
Returns:
A safe value.


The documentation for this class was generated from the following file:
Back To Top Up