2 * rcracki_mt is a multithreaded implementation and fork of the original
5 * Copyright 2010 Martin Westergaard Jørgensen <martinwj2005@gmail.com>
6 * Copyright 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>
7 * Copyright 2010 James Nobis <frt@quelrod.net>
9 * This file is part of rcracki_mt.
11 * rcracki_mt is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 2 of the License, or
14 * (at your option) any later version.
16 * rcracki_mt is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with rcracki_mt. If not, see <http://www.gnu.org/licenses/>.
25 #ifndef __RTI2READER_H__
26 #define __RTI2READER_H__
31 #if defined(_WIN32) && !defined(__GNUC__)
36 #include "BaseRTReader.h"
43 unsigned char rti_startptlength, rti_endptlength, rti_cplength, rti_index_numchainslength;
45 unsigned int *m_cppos;
48 class RTI2Reader : BaseRTReader
52 UINT4 m_chainPosition;
53 unsigned char *m_pPos, *m_pChainPos;
54 static RTI2Header *m_pHeader;
55 unsigned char *m_pIndex;
56 UINT4 m_chainsizebytes;
57 UINT4 m_indexrowsizebytes;
61 RTI2Reader(string Filename);
63 int ReadChains(unsigned int &numChains, RainbowChainO *pData);
64 unsigned int GetChainsLeft();
65 static RTI2Header *GetHeader() { return m_pHeader; }