Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/salinflt.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-FileCopyrightText: 2023 Open Salamander Authors
// SPDX-License-Identifier: GPL-2.0-or-later
// CommentsTranslationProject: TRANSLATED

#pragma once

Expand Down Expand Up @@ -30,15 +31,15 @@ struct huft

struct CDecompressionObject
{
const char* Data; // zacatek dat
const char* DataPtr; // aktualni pozice v datech
const char* DataEnd; // konec dat
const char* Data; // start of data
const char* DataPtr; // current position in the data
const char* DataEnd; // end of data

DWORD Crc; // CRC32 vypakovanych dat
DWORD Crc; // CRC32 of unpacked data

char* OutputMem; // buffer pro vybalena data
char* OutputMemPtr; // aktualni pozice v bufferu pro vybalena data
DWORD OutputMemSize; // velikost bufferu pro vybalena data
char* OutputMem; // buffer for unpacked data
char* OutputMemPtr; // current position in the buffer for unpacked data
DWORD OutputMemSize; // size of the buffer for unpacked data

//public fields, should be intialized before calling Inflate()
uch* SlideWin; //circular buffer
Expand Down Expand Up @@ -83,8 +84,8 @@ __forceinline uch NextByte(CDecompressionObject* decompress)
else
{
if (decompress->DataPtr == decompress->DataEnd)
decompress->DataPtr++; // chybovy stav je az decompress->DataPtr > decompress->DataEnd
return 0 /* chyba */;
decompress->DataPtr++; // the error state occurs only when decompress->DataPtr > decompress->DataEnd
return 0 /* error */;
}
}
#endif //_DEBUG