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, 2011 James Nobis <frt@quelrod.net>
8 * This file is part of rcracki_mt.
10 * rcracki_mt is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 2 of the License, or
13 * (at your option) any later version.
15 * rcracki_mt is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with rcracki_mt. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef __RTI2READER_H__
25 #define __RTI2READER_H__
30 #if defined(_WIN32) && !defined(__GNUC__)
35 #include "BaseRTReader.h"
42 unsigned char rti_startptlength, rti_endptlength, rti_cplength, rti_index_numchainslength;
44 unsigned int *m_cppos;
47 class RTI2Reader : BaseRTReader
51 uint32 m_chainPosition;
52 unsigned char *m_pPos, *m_pChainPos;
53 static RTI2Header *m_pHeader;
54 unsigned char *m_pIndex;
55 uint32 m_chainsizebytes;
56 uint32 m_indexrowsizebytes;
60 RTI2Reader(string Filename);
62 int ReadChains(uint32 &numChains, RainbowChainO *pData);
63 uint32 GetChainsLeft();
64 static RTI2Header *GetHeader() { return m_pHeader; }