diff options
Diffstat (limited to 'zip/ZipArchive/BytesWriter.h')
| -rw-r--r-- | zip/ZipArchive/BytesWriter.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/zip/ZipArchive/BytesWriter.h b/zip/ZipArchive/BytesWriter.h index df998d5..3564269 100644 --- a/zip/ZipArchive/BytesWriter.h +++ b/zip/ZipArchive/BytesWriter.h @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////////
-// This source file is part of the ZipArchive library source distribution and
-// is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz
+// This source file is part of the ZipArchive Library Open Source distribution
+// and is Copyrighted 2000 - 2022 by Artpol Software - Tadeusz Dracz
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -9,7 +9,7 @@ //
// For the licensing details refer to the License.txt file.
//
-// Web Site: http://www.artpol-software.com
+// Web Site: https://www.artpol-software.com
////////////////////////////////////////////////////////////////////////////////
/**
@@ -37,11 +37,11 @@ namespace ZipArchiveLib {
public:
- #ifdef ZIP_ARCHIVE_LITTLE_ENDIAN
+ #ifndef _ZIP_BIG_ENDIAN
/**
Reads \a iCount bytes from \a pSource into \a pDestination.
- \param[out] pDestination
+ \param[out] uDestination
The buffer to retrieve data with byte-ordering depending on the machine.
\param[in] pSource
@@ -71,6 +71,11 @@ namespace ZipArchiveLib }
#endif
+
+ static void WriteBytes(char* pDestination, WORD uSource)
+ {
+ memcpy(pDestination, &uSource, 2);
+ }
/**
Writes \a iCount bytes from \a pSource into \a pDestination.
@@ -78,17 +83,12 @@ namespace ZipArchiveLib \param[out] pDestination
The buffer to retrieve little-endian ordered data.
- \param[in] pSource
+ \param[in] uSource
The buffer with byte-ordering depending on the machine.
\param iCount
The number of bytes to write.
*/
- static void WriteBytes(char* pDestination, WORD uSource)
- {
- memcpy(pDestination, &uSource, 2);
- }
-
static void WriteBytes(char* pDestination, DWORD uSource, int iCount = 4)
{
memcpy(pDestination, &uSource, iCount);
|
