]> git.sesse.net Git - freerainbowtables/blob - Client Applications/rcracki/tmp/MemoryPool.h
initial
[freerainbowtables] / Client Applications / rcracki / tmp / MemoryPool.h
1 /*
2    RainbowCrack - a general propose implementation of Philippe Oechslin's faster time-memory trade-off technique.
3
4    Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>
5 */
6
7 #ifndef _MEMORYPOOL_H
8 #define _MEMORYPOOL_H
9
10 class CMemoryPool  
11 {
12 public:
13         CMemoryPool();
14         virtual ~CMemoryPool();
15
16 private:
17         unsigned char* m_pMem;
18         unsigned int m_nMemSize;
19
20         unsigned int m_nMemMax;
21
22 public:
23         unsigned char* Allocate(unsigned int nFileLen, unsigned int& nAllocatedSize);
24 };
25
26 #endif