unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

FragmentedWindow Class Reference

#include <unpack.hpp>

Public Member Functions

 FragmentedWindow ()
 ~FragmentedWindow ()
void Init (size_t WinSize)
byteoperator[] (size_t Item)
void CopyString (uint Length, uint Distance, size_t &UnpPtr, size_t MaxWinMask)
void CopyData (byte *Dest, size_t WinPos, size_t Size)
size_t GetBlockSize (size_t StartPos, size_t RequiredSize)

Private Types

enum  { MAX_MEM_BLOCKS =32 }

Private Member Functions

void Reset ()

Private Attributes

size_t MemSize [MAX_MEM_BLOCKS]

Detailed Description

Definition at line 183 of file unpack.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 186 of file unpack.hpp.

Constructor & Destructor Documentation

◆ FragmentedWindow()

FragmentedWindow::FragmentedWindow ( )

Definition at line 1 of file unpack50frag.cpp.

References Mem, and MemSize.

◆ ~FragmentedWindow()

FragmentedWindow::~FragmentedWindow ( )

Definition at line 8 of file unpack50frag.cpp.

References Reset().

Member Function Documentation

◆ CopyData()

void FragmentedWindow::CopyData ( byte Dest,
size_t  WinPos,
size_t  Size 

Definition at line 90 of file unpack50frag.cpp.

Referenced by Unpack::UnpWriteBuf().

◆ CopyString()

void FragmentedWindow::CopyString ( uint  Length,
uint  Distance,
size_t &  UnpPtr,
size_t  MaxWinMask 

Definition at line 77 of file unpack50frag.cpp.

Referenced by Unpack::Unpack5().

◆ GetBlockSize()

size_t FragmentedWindow::GetBlockSize ( size_t  StartPos,
size_t  RequiredSize 

Definition at line 97 of file unpack50frag.cpp.

References ASIZE, MemSize, and Min.

Referenced by Unpack::UnpWriteArea().

◆ Init()

void FragmentedWindow::Init ( size_t  WinSize)

Definition at line 25 of file unpack50frag.cpp.

References ASIZE, Max, Mem, MemSize, and Reset().

Referenced by Unpack::Init().

◆ operator[]()

byte & FragmentedWindow::operator[] ( size_t  Item)

Definition at line 66 of file unpack50frag.cpp.

References ASIZE, Mem, and MemSize.

◆ Reset()

void FragmentedWindow::Reset ( )

Definition at line 14 of file unpack50frag.cpp.

References ASIZE, and Mem.

Referenced by Init(), and ~FragmentedWindow().

Member Data Documentation

◆ Mem

byte* FragmentedWindow::Mem[MAX_MEM_BLOCKS]

Definition at line 189 of file unpack.hpp.

Referenced by FragmentedWindow(), Init(), operator[](), and Reset().

◆ MemSize

size_t FragmentedWindow::MemSize[MAX_MEM_BLOCKS]

Definition at line 190 of file unpack.hpp.

Referenced by FragmentedWindow(), GetBlockSize(), Init(), and operator[]().

The documentation for this class was generated from the following files: