diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2023-12-17 21:23:58 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2023-12-17 21:23:58 +0100 |
| commit | 02d6107c97b48888362e7c6a70dcac323c89d741 (patch) | |
| tree | 5069a77adaf73f7249ac79b6c49a47168a647ef8 /zip/ZipArchive/BytesWriter.h | |
| parent | 4e17c2527b106f1b493a3ac77c89858d14f834e2 (diff) | |
| download | tuxcmd-modules-02d6107c97b48888362e7c6a70dcac323c89d741.tar.xz | |
ZipArchive: Update to the 4.6.9 release
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);
|
