Skip to content

Commit 45db83f

Browse files
committed
ZSTD_decodeLiteralsBlock renamed to ZSTDv01_decodeLiteralsBlock
1 parent 476964f commit 45db83f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/legacy/zstd_v01.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ unsigned ZSTDv01_isError(size_t code) { return ERR_isError(code); }
14531453
* Decompression code
14541454
**************************************************************/
14551455

1456-
static size_t ZSTD_getcBlockSize(const void* src, size_t srcSize, blockProperties_t* bpPtr)
1456+
size_t ZSTDv01_getcBlockSize(const void* src, size_t srcSize, blockProperties_t* bpPtr)
14571457
{
14581458
const BYTE* const in = (const BYTE* const)src;
14591459
BYTE headerFlags;
@@ -1506,7 +1506,7 @@ static size_t ZSTD_decompressLiterals(void* ctx,
15061506
}
15071507

15081508

1509-
static size_t ZSTD_decodeLiteralsBlock(void* ctx,
1509+
size_t ZSTDv01_decodeLiteralsBlock(void* ctx,
15101510
void* dst, size_t maxDstSize,
15111511
const BYTE** litStart, size_t* litSize,
15121512
const void* src, size_t srcSize)
@@ -1517,7 +1517,7 @@ static size_t ZSTD_decodeLiteralsBlock(void* ctx,
15171517
BYTE* const oend = ostart + maxDstSize;
15181518
blockProperties_t litbp;
15191519

1520-
size_t litcSize = ZSTD_getcBlockSize(src, srcSize, &litbp);
1520+
size_t litcSize = ZSTDv01_getcBlockSize(src, srcSize, &litbp);
15211521
if (ZSTDv01_isError(litcSize)) return litcSize;
15221522
if (litcSize > srcSize - ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);
15231523
ip += ZSTD_blockHeaderSize;
@@ -1914,7 +1914,7 @@ static size_t ZSTD_decompressBlock(
19141914
size_t errorCode;
19151915

19161916
/* Decode literals sub-block */
1917-
errorCode = ZSTD_decodeLiteralsBlock(ctx, dst, maxDstSize, &litPtr, &litSize, src, srcSize);
1917+
errorCode = ZSTDv01_decodeLiteralsBlock(ctx, dst, maxDstSize, &litPtr, &litSize, src, srcSize);
19181918
if (ZSTDv01_isError(errorCode)) return errorCode;
19191919
ip += errorCode;
19201920
srcSize -= errorCode;
@@ -1944,7 +1944,7 @@ size_t ZSTDv01_decompressDCtx(void* ctx, void* dst, size_t maxDstSize, const voi
19441944
/* Loop on each block */
19451945
while (1)
19461946
{
1947-
size_t blockSize = ZSTD_getcBlockSize(ip, iend-ip, &blockProperties);
1947+
size_t blockSize = ZSTDv01_getcBlockSize(ip, iend-ip, &blockProperties);
19481948
if (ZSTDv01_isError(blockSize)) return blockSize;
19491949

19501950
ip += ZSTD_blockHeaderSize;
@@ -2044,7 +2044,7 @@ size_t ZSTDv01_decompressContinue(ZSTDv01_Dctx* dctx, void* dst, size_t maxDstSi
20442044
if (ctx->phase == 1)
20452045
{
20462046
blockProperties_t bp;
2047-
size_t blockSize = ZSTD_getcBlockSize(src, ZSTD_blockHeaderSize, &bp);
2047+
size_t blockSize = ZSTDv01_getcBlockSize(src, ZSTD_blockHeaderSize, &bp);
20482048
if (ZSTDv01_isError(blockSize)) return blockSize;
20492049
if (bp.blockType == bt_end)
20502050
{

0 commit comments

Comments
 (0)