Fix typo in legacy documentation
This commit is contained in:
@@ -180,9 +180,8 @@ MEM_STATIC size_t ZSTD_decompressLegacy(
|
|||||||
|
|
||||||
MEM_STATIC ZSTD_frameSizeInfo ZSTD_findFrameSizeInfoLegacy(const void *src, size_t srcSize)
|
MEM_STATIC ZSTD_frameSizeInfo ZSTD_findFrameSizeInfoLegacy(const void *src, size_t srcSize)
|
||||||
{
|
{
|
||||||
U32 const version = ZSTD_isLegacy(src, srcSize);
|
|
||||||
ZSTD_frameSizeInfo frameSizeInfo;
|
ZSTD_frameSizeInfo frameSizeInfo;
|
||||||
memset(&frameSizeInfo, 0, sizeof(ZSTD_frameSizeInfo));
|
U32 const version = ZSTD_isLegacy(src, srcSize);
|
||||||
switch(version)
|
switch(version)
|
||||||
{
|
{
|
||||||
#if (ZSTD_LEGACY_SUPPORT <= 1)
|
#if (ZSTD_LEGACY_SUPPORT <= 1)
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ size_t ZSTDv01_decompress( void* dst, size_t maxOriginalSize,
|
|||||||
/**
|
/**
|
||||||
ZSTDv01_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.1.x format
|
ZSTDv01_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.1.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ size_t ZSTDv02_decompress( void* dst, size_t maxOriginalSize,
|
|||||||
/**
|
/**
|
||||||
ZSTDv02_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.2.x format
|
ZSTDv02_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.2.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ size_t ZSTDv03_decompress( void* dst, size_t maxOriginalSize,
|
|||||||
/**
|
/**
|
||||||
ZSTDv03_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.3.x format
|
ZSTDv03_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.3.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ size_t ZSTDv04_decompress( void* dst, size_t maxOriginalSize,
|
|||||||
/**
|
/**
|
||||||
ZSTDv04_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.4.x format
|
ZSTDv04_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.4.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ size_t ZSTDv05_decompress( void* dst, size_t dstCapacity,
|
|||||||
/**
|
/**
|
||||||
ZSTDv05_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.5.x format
|
ZSTDv05_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.5.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ ZSTDLIBv06_API size_t ZSTDv06_decompress( void* dst, size_t dstCapacity,
|
|||||||
/**
|
/**
|
||||||
ZSTDv06_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.6.x format
|
ZSTDv06_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.6.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -52,10 +52,10 @@ ZSTDLIBv07_API size_t ZSTDv07_decompress( void* dst, size_t dstCapacity,
|
|||||||
/**
|
/**
|
||||||
ZSTDv07_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.7.x format
|
ZSTDv07_findFrameSizeInfoLegacy() : get the source length and decompressed bound of a ZSTD frame compliant with v0.7.x format
|
||||||
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
srcSize : The size of the 'src' buffer, at least as large as the frame pointed to by 'src'
|
||||||
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
cSize (output parameter) : the number of bytes that would be read to decompress this frame
|
||||||
or an errorCode if it fails (which can be tested using ZSTDv01_isError())
|
or an error code if it fails (which can be tested using ZSTDv01_isError())
|
||||||
dBound (output paramter) : an upper-bound for the decompressed size of the data in the frame
|
dBound (output parameter) : an upper-bound for the decompressed size of the data in the frame
|
||||||
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
or ZSTD_CONTENTSIZE_ERROR if an error occurs
|
||||||
|
|
||||||
note : assumes `cSize` and `dBound` are _not_ NULL.
|
note : assumes `cSize` and `dBound` are _not_ NULL.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user