chromium/third_party/unrar/src/unpack.cpp

// NOTE(vakh): The process.h file needs to be included first because "rar.hpp"
// defines certain macros that cause symbol redefinition errors
#if defined(UNRAR_NO_EXCEPTIONS)
#include "base/process/memory.h"
#endif  // defined(UNRAR_NO_EXCEPTIONS)

#include "rar.hpp"

#include "coder.cpp"
#include "suballoc.cpp"
#include "model.cpp"
#include "unpackinline.cpp"
#ifdef RAR_SMP
#include "unpack50mt.cpp"
#endif
#ifndef SFX_MODULE
#include "unpack15.cpp"
#include "unpack20.cpp"
#include "unpack30.cpp"
#endif
#include "unpack50.cpp"
#include "unpack50frag.cpp"

#if defined(UNRAR_NO_EXCEPTIONS)
#define UNRAR_FATAL_BAD_ALLOC(size)
#else
#define UNRAR_FATAL_BAD_ALLOC
#endif

Unpack::Unpack(ComprDataIO *DataIO)
:{}


Unpack::~Unpack()
{}


#ifdef RAR_SMP
void Unpack::SetThreads(uint Threads)
{}
#endif


// We get 64-bit WinSize, so we still can check and quit for dictionaries
// exceeding a threshold in 32-bit builds. Then we convert WinSize to size_t
// MaxWinSize.
void Unpack::Init(uint64 WinSize,bool Solid)
{}


void Unpack::DoUnpack(uint Method,bool Solid)
{}


void Unpack::UnpInitData(bool Solid)
{}


// LengthTable contains the length in bits for every element of alphabet.
// Dec is the structure to decode Huffman code/
// Size is size of length table and DecodeNum field in Dec structure,
void Unpack::MakeDecodeTables(byte *LengthTable,DecodeTable *Dec,uint Size)
{}