Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
brotli2.c File Reference
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include "stdio_v2.h"
#include "stdio_v3.h"
#include <process.h>
#include "win64.h"
#include "brotli2_decoder_mt_z.c"

Data Structures

struct  _rspdata
 

Macros

#define uchar   unsigned char
 
#define uint   unsigned int
 
#define ulong   unsigned long
 
#define ushort   unsigned short
 
#define __amandacall   __stdcall
 
#define AMANDA__SIZE   ((32767 * 6) + 2)
 
#define AMANDA__SIZE_w   (32767)
 
#define AMANDA__SIZE_ww   ((32767 * 2) + 2)
 
#define AMANDA__SIZE   ((32767 * 6) + 2)
 
#define AMANDA__SIZE_w   (32767)
 
#define CHUNK   (32768 * 2 * 2) /* it is a good slice of data */
 

Typedefs

typedef struct _rspdata rspdata
 

Functions

void pedro_dprintf (int amanda_level, char *format,...)
 
int lz5uncompress_k (char *input, char *output)
 
FILE * fopen_utf8_z (char *filename_z, char *mode)
 
void mprintf (char *format,...)
 
uint getpor (int max, uint fatia)
 
void dprintf (char *format,...)
 
int start ()
 
int start2 ()
 
HANDLE lfopen (const char *szFileName, char *pMode)
 
void lfclose (HANDLE hFile)
 
__int64 lfseek (HANDLE hFile, __int64 iDistance, int iMode)
 
__int64 lftell (HANDLE hFile)
 
__int64 lffilesize (const char *szFileName)
 simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH)
 
unsigned long lfread (void *pBuffer, unsigned long ulCount, HANDLE hFile)
 
unsigned long lfwrite (void *pBuffer, unsigned long ulCount, HANDLE hFile)
 
int setendofile (HANDLE file, __int64 position)
 
int createtempfilename_and_keep_z_7 (char *path1, char *out_z, char *signature_z)
 
void yasmin_charlotte_pereira_dprintf (int amanda_level, char *format,...)
 
int lz5compress_k_7 (char *input, char *output, int levelin)
 
int lz5uncompress_7 (char *input, char *output)
 
int __amandacall get_multithread_progress_7 (void)
 

Variables

bool is_multi_thread_z_7 = false
 
int64_t max_memory_size_k__p_7
 
CRITICAL_SECTION lpCriticalSection_charli_brotli2
 
int intpause_7
 
int intcancel_7
 
char temp_path_z_7 []
 
int finished_7 = 0
 
int intstatus_7
 
int n_threads_z_7
 
int64_t totalbytes_z_7
 
int64_t bytes__read_thread_z_7 [129]
 
__INT32_OR_INT64 my_thread_handle_7 [129]
 
char temp_files_z_7 [129][2048]
 
int thread_return_value_z_7
 

Macro Definition Documentation

◆ __amandacall

#define __amandacall   __stdcall

◆ AMANDA__SIZE [1/2]

#define AMANDA__SIZE   ((32767 * 6) + 2)

The maximum size of an utf-8 encoded filename with the max limit of a file in Windows

◆ AMANDA__SIZE [2/2]

#define AMANDA__SIZE   ((32767 * 6) + 2)

The maximum size of an utf-8 encoded filename with the max limit of a file in Windows

◆ AMANDA__SIZE_w [1/2]

#define AMANDA__SIZE_w   (32767)

The maximum size of Unicode characters in a path in Windows, Linux is 1024 characters as far I know

◆ AMANDA__SIZE_w [2/2]

#define AMANDA__SIZE_w   (32767)

The maximum size of Unicode characters in a path in Windows, Linux is 1024 characters as far I know

◆ AMANDA__SIZE_ww

#define AMANDA__SIZE_ww   ((32767 * 2) + 2)

◆ CHUNK

#define CHUNK   (32768 * 2 * 2) /* it is a good slice of data */

◆ uchar

#define uchar   unsigned char

◆ uint

#define uint   unsigned int

◆ ulong

#define ulong   unsigned long

◆ ushort

#define ushort   unsigned short

Typedef Documentation

◆ rspdata

typedef struct _rspdata rspdata

Function Documentation

◆ createtempfilename_and_keep_z_7()

int createtempfilename_and_keep_z_7 ( char * path1,
char * out_z,
char * signature_z )

◆ dprintf()

void dprintf ( char * format,
... )

◆ fopen_utf8_z()

FILE * fopen_utf8_z ( char * filename_z,
char * mode )

◆ get_multithread_progress_7()

int __amandacall get_multithread_progress_7 ( void )

◆ getpor()

uint getpor ( int max,
uint fatia )

◆ lfclose()

void lfclose ( HANDLE hFile)

◆ lffilesize()

__int64 lffilesize ( const char * szFileName)

simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH)

to get the file input size, with support to files above 2gb, and unicode support

Parameters
szFileNameutf-8 encoded filename
Returns
__int64
Parameters
szFileNamethe utf-8 encoded input file
Returns
__int64

simple function to get the size of a utf-8 encoded filename, no support to long filenames yet (above MAX_PATH)

Parameters
szFileNamethe utf-8 encoded input file
Returns
__int64

◆ lfopen()

HANDLE lfopen ( const char * szFileName,
char * pMode )

◆ lfread()

unsigned long lfread ( void * pBuffer,
unsigned long ulCount,
HANDLE hFile )

◆ lfseek()

__int64 lfseek ( HANDLE hFile,
__int64 iDistance,
int iMode )

◆ lftell()

__int64 lftell ( HANDLE hFile)

◆ lfwrite()

unsigned long lfwrite ( void * pBuffer,
unsigned long ulCount,
HANDLE hFile )

◆ lz5compress_k_7()

int lz5compress_k_7 ( char * input,
char * output,
int levelin )

◆ lz5uncompress_7()

int lz5uncompress_7 ( char * input,
char * output )

◆ lz5uncompress_k()

int lz5uncompress_k ( char * input,
char * output )

◆ mprintf()

void __cdecl mprintf ( char * format,
... )

◆ pedro_dprintf()

void pedro_dprintf ( int amanda_level,
char * format,
... )

◆ setendofile()

int setendofile ( HANDLE file,
__int64 position )

◆ start()

int start ( )

◆ start2()

int start2 ( )

◆ yasmin_charlotte_pereira_dprintf()

void yasmin_charlotte_pereira_dprintf ( int amanda_level,
char * format,
... )

Variable Documentation

◆ bytes__read_thread_z_7

int64_t bytes__read_thread_z_7[129]

◆ finished_7

int finished_7 = 0

◆ intcancel_7

int intcancel_7
extern

◆ intpause_7

int intpause_7
extern

◆ intstatus_7

int intstatus_7
extern

◆ is_multi_thread_z_7

bool is_multi_thread_z_7 = false

◆ lpCriticalSection_charli_brotli2

CRITICAL_SECTION lpCriticalSection_charli_brotli2

◆ max_memory_size_k__p_7

int64_t max_memory_size_k__p_7

◆ my_thread_handle_7

__INT32_OR_INT64 my_thread_handle_7[129]

◆ n_threads_z_7

int n_threads_z_7
extern

◆ temp_files_z_7

char temp_files_z_7[129][2048]

◆ temp_path_z_7

char temp_path_z_7[]
extern

◆ thread_return_value_z_7

int thread_return_value_z_7

◆ totalbytes_z_7

int64_t totalbytes_z_7