From dbf9c508892f6f6eab2edd703561fe0696712e65 Mon Sep 17 00:00:00 2001 From: bellus869 Date: Tue, 3 Feb 2026 11:43:58 +0100 Subject: [PATCH] translated salinflt.h --- src/salinflt.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/salinflt.h b/src/salinflt.h index 52c9dffca..13d4e884f 100644 --- a/src/salinflt.h +++ b/src/salinflt.h @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: 2023 Open Salamander Authors // SPDX-License-Identifier: GPL-2.0-or-later +// CommentsTranslationProject: TRANSLATED #pragma once @@ -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 @@ -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