Fix random typos over several source and text files.
This commit is contained in:
parent
16799d064b
commit
01155ccc3f
@ -34,7 +34,7 @@ namespace DotZLib
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the checksum generator basewith a specified value
|
/// Initializes a new instance of the checksum generator base with a specified value
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="initialValue">The value to set the current checksum to</param>
|
/// <param name="initialValue">The value to set the current checksum to</param>
|
||||||
public ChecksumGeneratorBase(uint initialValue)
|
public ChecksumGeneratorBase(uint initialValue)
|
||||||
|
@ -413,7 +413,7 @@ template<typename T1, typename T2>
|
|||||||
class gzomanip2
|
class gzomanip2
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Allows insertor to peek at internals
|
// Allows inserter to peek at internals
|
||||||
template <typename Ta, typename Tb>
|
template <typename Ta, typename Tb>
|
||||||
friend gzofstream&
|
friend gzofstream&
|
||||||
operator<<(gzofstream&,
|
operator<<(gzofstream&,
|
||||||
@ -452,7 +452,7 @@ template<typename T1, typename T2>
|
|||||||
: func(f), val1(v1), val2(v2)
|
: func(f), val1(v1), val2(v2)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
// Insertor applies underlying manipulator function to stream
|
// Inserter applies underlying manipulator function to stream
|
||||||
template<typename T1, typename T2>
|
template<typename T1, typename T2>
|
||||||
inline gzofstream&
|
inline gzofstream&
|
||||||
operator<<(gzofstream& s, const gzomanip2<T1,T2>& m)
|
operator<<(gzofstream& s, const gzomanip2<T1,T2>& m)
|
||||||
|
@ -450,7 +450,7 @@ local ZPOS64_T unz64local_SearchCentralDir64(const zlib_filefunc64_32_def* pzlib
|
|||||||
if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
|
if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
|
||||||
return CENTRALDIRINVALID;
|
return CENTRALDIRINVALID;
|
||||||
|
|
||||||
/* number of the disk with the start of the zip64 end of central directory */
|
/* number of the disk with the start of the zip64 end of central directory */
|
||||||
if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
|
if (unz64local_getLong(pzlib_filefunc_def,filestream,&uL)!=UNZ_OK)
|
||||||
return CENTRALDIRINVALID;
|
return CENTRALDIRINVALID;
|
||||||
if (uL != 0)
|
if (uL != 0)
|
||||||
@ -499,7 +499,7 @@ local unzFile unzOpenInternal(const void *path,
|
|||||||
|
|
||||||
uLong number_disk; /* number of the current dist, used for
|
uLong number_disk; /* number of the current dist, used for
|
||||||
spanning ZIP, unsupported, always 0*/
|
spanning ZIP, unsupported, always 0*/
|
||||||
uLong number_disk_with_CD; /* number the the disk with central dir, used
|
uLong number_disk_with_CD; /* number the disk with central dir, used
|
||||||
for spanning ZIP, unsupported, always 0*/
|
for spanning ZIP, unsupported, always 0*/
|
||||||
ZPOS64_T number_entry_CD; /* total number of entries in
|
ZPOS64_T number_entry_CD; /* total number of entries in
|
||||||
the central dir
|
the central dir
|
||||||
|
@ -306,7 +306,7 @@ extern int ZEXPORT unzGetCurrentFileInfo(unzFile file,
|
|||||||
Get Info about the current file
|
Get Info about the current file
|
||||||
if pfile_info!=NULL, the *pfile_info structure will contain some info about
|
if pfile_info!=NULL, the *pfile_info structure will contain some info about
|
||||||
the current file
|
the current file
|
||||||
if szFileName!=NULL, the filemane string will be copied in szFileName
|
if szFileName!=NULL, the filename string will be copied in szFileName
|
||||||
(fileNameBufferSize is the size of the buffer)
|
(fileNameBufferSize is the size of the buffer)
|
||||||
if extraField!=NULL, the extra field information will be copied in extraField
|
if extraField!=NULL, the extra field information will be copied in extraField
|
||||||
(extraFieldBufferSize is the size of the buffer).
|
(extraFieldBufferSize is the size of the buffer).
|
||||||
|
@ -575,7 +575,7 @@ local ZPOS64_T zip64local_SearchCentralDir64(const zlib_filefunc64_32_def* pzlib
|
|||||||
if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
|
if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* number of the disk with the start of the zip64 end of central directory */
|
/* number of the disk with the start of the zip64 end of central directory */
|
||||||
if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
|
if (zip64local_getLong(pzlib_filefunc_def,filestream,&uL)!=ZIP_OK)
|
||||||
return 0;
|
return 0;
|
||||||
if (uL != 0)
|
if (uL != 0)
|
||||||
@ -1608,7 +1608,7 @@ extern int ZEXPORT zipCloseFileInZipRaw64(zipFile file, ZPOS64_T uncompressed_si
|
|||||||
|
|
||||||
if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree)
|
if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree)
|
||||||
{
|
{
|
||||||
// we can not write more data to the buffer that we have room for.
|
// we cannot write more data to the buffer that we have room for.
|
||||||
return ZIP_BADZIPFILE;
|
return ZIP_BADZIPFILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ table took no time (and if you had infinite memory), then there would only
|
|||||||
be a first level table to cover all the way to the longest code. However,
|
be a first level table to cover all the way to the longest code. However,
|
||||||
building the table ends up taking a lot longer for more bits since short
|
building the table ends up taking a lot longer for more bits since short
|
||||||
codes are replicated many times in such a table. What inflate() does is
|
codes are replicated many times in such a table. What inflate() does is
|
||||||
simply to make the number of bits in the first table a variable, and then
|
simply to make the number of bits in the first table a variable, and then
|
||||||
to set that variable for the maximum speed.
|
to set that variable for the maximum speed.
|
||||||
|
|
||||||
For inflate, which has 286 possible codes for the literal/length tree, the size
|
For inflate, which has 286 possible codes for the literal/length tree, the size
|
||||||
|
@ -267,7 +267,7 @@ static inline void append_bits(unsigned value, int bits,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert enough bits in the form of empty deflate blocks in front of the the
|
// Insert enough bits in the form of empty deflate blocks in front of the
|
||||||
// low bits bits of value, in order to bring the sequence to a byte boundary.
|
// low bits bits of value, in order to bring the sequence to a byte boundary.
|
||||||
// Then feed that to inflate(). This does what inflatePrime() does, except that
|
// Then feed that to inflate(). This does what inflatePrime() does, except that
|
||||||
// a negative value of bits is not supported. bits must be in 0..16. If the
|
// a negative value of bits is not supported. bits must be in 0..16. If the
|
||||||
|
@ -115,7 +115,7 @@ SUCCESS Then
|
|||||||
ReDim Preserve bytaryCpr(lngCprSiz - 1)
|
ReDim Preserve bytaryCpr(lngCprSiz - 1)
|
||||||
Open strCprPth For Binary Access Write As #1
|
Open strCprPth For Binary Access Write As #1
|
||||||
Put #1, , bytaryCpr()
|
Put #1, , bytaryCpr()
|
||||||
Put #1, , lngOriSiz 'Add the the original size value to the end
|
Put #1, , lngOriSiz 'Add the original size value to the end
|
||||||
(last 4 bytes)
|
(last 4 bytes)
|
||||||
Close #1
|
Close #1
|
||||||
Else
|
Else
|
||||||
|
Loading…
Reference in New Issue
Block a user