X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Common%2Frt%20api%2FMemoryPool.h;h=c5668e5dfde6f85d208c36ff366daee712b2e517;hb=47c71901e7a97c226c8f1df749e3606d43656f32;hp=9f2ea4ed21f3c0e9532536a903544e161fbad176;hpb=bcfd4a8e2d07b3a0fce0bc8e471d8562b142b7e0;p=freerainbowtables diff --git a/Common/rt api/MemoryPool.h b/Common/rt api/MemoryPool.h index 9f2ea4e..c5668e5 100644 --- a/Common/rt api/MemoryPool.h +++ b/Common/rt api/MemoryPool.h @@ -1,12 +1,34 @@ /* - RainbowCrack - a general propose implementation of Philippe Oechslin's faster time-memory trade-off technique. - - Copyright (C) Zhu Shuanglei -*/ + * freerainbowtables is a project for generating, distributing, and using + * perfect rainbow tables + * + * Copyright (C) Zhu Shuanglei + * Copyright 2010 Martin Westergaard Jørgensen + * Copyright 2009, 2010 Daniël Niggebrugge + * Copyright 2009, 2010, 2011 James Nobis + * Copyright 2010 uroskn + * + * This file is part of freerainbowtables. + * + * freerainbowtables is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * freerainbowtables is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with freerainbowtables. If not, see . + */ #ifndef _MEMORYPOOL_H #define _MEMORYPOOL_H +#include "global.h" + class CMemoryPool { public: @@ -14,13 +36,14 @@ public: virtual ~CMemoryPool(); private: + bool debug; unsigned char* m_pMem; - unsigned int m_nMemSize; + uint64 m_nMemSize; - unsigned int m_nMemMax; + uint64 m_nMemMax; public: - unsigned char* Allocate(unsigned int nFileLen, unsigned int& nAllocatedSize); + unsigned char* Allocate(unsigned int nFileLen, uint64& nAllocatedSize); }; #endif