chromium/third_party/unrar/src/suballoc.cpp

/****************************************************************************
 *  This file is part of PPMd project                                       *
 *  Written and distributed to public domain by Dmitry Shkarin 1997,        *
 *  1999-2000                                                               *
 *  Contents: memory allocation routines                                    *
 ****************************************************************************/

static const uint UNIT_SIZE=;
static const uint FIXED_UNIT_SIZE=;

SubAllocator::SubAllocator()
{}


void SubAllocator::Clean()
{}


inline void SubAllocator::InsertNode(void* p,int indx) 
{}


inline void* SubAllocator::RemoveNode(int indx) 
{}


inline uint SubAllocator::U2B(int NU) 
{}



// Calculate RARPPM_MEM_BLK+Items address. Real RARPPM_MEM_BLK size must be
// equal to UNIT_SIZE, so we cannot just add Items to RARPPM_MEM_BLK address.
inline RARPPM_MEM_BLK* SubAllocator::MBPtr(RARPPM_MEM_BLK *BasePtr,int Items)
{}


inline void SubAllocator::SplitBlock(void* pv,int OldIndx,int NewIndx)
{}


void SubAllocator::StopSubAllocator()
{}


bool SubAllocator::StartSubAllocator(int SASize)
{}


void SubAllocator::InitSubAllocator()
{}


inline void SubAllocator::GlueFreeBlocks()
{}

void* SubAllocator::AllocUnitsRare(int indx)
{}


inline void* SubAllocator::AllocUnits(int NU)
{}


void* SubAllocator::AllocContext()
{}


void* SubAllocator::ExpandUnits(void* OldPtr,int OldNU)
{}


void* SubAllocator::ShrinkUnits(void* OldPtr,int OldNU,int NewNU)
{}


void SubAllocator::FreeUnits(void* ptr,int OldNU)
{}