CMS 3D CMS Logo

Functions | Variables
LzmaFile.cc File Reference
#include "LzmaFile.h"
#include "LzmaDec.h"
#include "Alloc.h"
#include "Types.h"
#include "7zFile.h"
#include <cmath>
#include <iostream>
#include <queue>
#include <cstdlib>

Go to the source code of this file.

Functions

static void * SzAlloc (void *, size_t size)
 
static void SzFree (void *, void *address)
 

Variables

static ISzAlloc g_Alloc = {SzAlloc, SzFree}
 
const char * kCantAllocateMessage = "Can not allocate memory"
 
const char * kCantReadMessage = "Can not read input file"
 
const char * kCantWriteMessage = "Can not write output file"
 
const char * kDataErrorMessage = "Data error"
 

Function Documentation

◆ SzAlloc()

static void* SzAlloc ( void *  ,
size_t  size 
)
static

Definition at line 21 of file LzmaFile.cc.

References MyAlloc().

21 { return MyAlloc(size); }
size
Write out results.
void * MyAlloc(size_t size)
Definition: Alloc.cc:23

◆ SzFree()

static void SzFree ( void *  ,
void *  address 
)
static

Definition at line 22 of file LzmaFile.cc.

References MyFree().

22 { MyFree(address); }
void MyFree(void *address)
Definition: Alloc.cc:37

Variable Documentation

◆ g_Alloc

ISzAlloc g_Alloc = {SzAlloc, SzFree}
static

Definition at line 23 of file LzmaFile.cc.

Referenced by LzmaFile::Close(), and LzmaFile::Open().

◆ kCantAllocateMessage

const char* kCantAllocateMessage = "Can not allocate memory"

Definition at line 18 of file LzmaFile.cc.

◆ kCantReadMessage

const char* kCantReadMessage = "Can not read input file"

Definition at line 16 of file LzmaFile.cc.

◆ kCantWriteMessage

const char* kCantWriteMessage = "Can not write output file"

Definition at line 17 of file LzmaFile.cc.

◆ kDataErrorMessage

const char* kDataErrorMessage = "Data error"

Definition at line 19 of file LzmaFile.cc.