Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
lz5dll.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 <stdbool.h>
#include "aline_definitive_header_2_.h"

Macros

#define __amandacall   __stdcall
 
#define AMANDA__SIZE   ((32767 * 6) + 2)
 
#define AMANDA__SIZE_w   (32767)
 
#define AMARIC__VERSION   "5.5.8 build 370"
 
#define __INT32_OR_INT64   int
 

Functions

void pedro_dprintf2 (int amanda_level, char *format,...)
 pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....
 
int __amandacall get_multithread_progress__6 (void)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
int __stdcall IsAMD64 (void)
 
int lz5uncompress (char *input, char *output)
 
int lz5compress (char *input, char *output, int levelin)
 
int lz5compress_k (char *input, char *output, int levelin)
 
void removedordeespaconoinicio (char *path)
 
void removedordeespaconofinal (char *path)
 
char * getcpuname_k (void)
 
char * getprocessorbrandstring_k (void)
 
void dprintf (char *format,...)
 
int __stdcall interface1__6 (__INT32_OR_INT64 argumento1, __INT32_OR_INT64 argumento2, __INT32_OR_INT64 argumento3, __INT32_OR_INT64 argumento4)
 
int __stdcall Compresslz5 (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall CompressLz5_k (char *Inputfile, char *OutPutFile, int CompressionLevel)
 
int __stdcall DecompressLz5 (char *Inputfile, char *OutPutFile)
 
void yasmin_charlotte_pereira_dprintf (int amanda_level, char *format,...)
 
int __stdcall compress_l5___rspk_ar (char *Input_amanda_file, char *OutPut_ricardo_File, int Compression_juliete_Level, int n_threads_z__, char *temp_path_z__)
 function to compress a not standard lz5 file
 
int __stdcall uncompress_l5___rspk_ar (char *Inputfile_arp, char *OutPutFile_arp, int n_threads_z__, char *temp_path_z_S2__, int *cores_used_z__)
 function to uncompress a lz5 file
 
int __stdcall get_progress_l5___ar (void)
 
int __stdcall pause_l5___aakp_l5___ar (void)
 
int __stdcall resume_l5___aakp_l5___ar (void)
 
int __stdcall cancel_l5___aakp_l5___ar (void)
 

Variables

intcores_used_z__6 = NULL
 
bool is_multi_thread_z__6
 
char temp_path_z__6 [AMANDA__SIZE]
 the temp path to be used...
 
int n_threads_z__6 = 1
 
int intpause__6
 
int intcancel__6
 
int intstatus__6
 
int lzop2percent
 
int unicodemode__6 = 0
 

Macro Definition Documentation

◆ __amandacall

#define __amandacall   __stdcall

◆ __INT32_OR_INT64

#define __INT32_OR_INT64   int

◆ AMANDA__SIZE

#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

#define AMANDA__SIZE_w   (32767)

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

◆ AMARIC__VERSION

#define AMARIC__VERSION   "5.5.8 build 370"

Function Documentation

◆ cancel_l5___aakp_l5___ar()

int __stdcall cancel_l5___aakp_l5___ar ( void )

◆ compress_l5___rspk_ar()

int __stdcall compress_l5___rspk_ar ( char * Input_amanda_file,
char * OutPut_ricardo_File,
int Compression_juliete_Level,
int n_threads_z__,
char * temp_path_z__ )

function to compress a not standard lz5 file

Parameters
Input_amanda_fileutf-8 encoded input file
OutPut_ricardo_Fileutf-8 encoded output file
Compression_juliete_Levelthe level to use, not in use this moment...
n_threads_z__number of threads to use, 0 to detect the number of cores
temp_path_z__the temp path to use, need to be ANSI for the moment (soon we will solve it)
Returns
int
0 - No error
1 - Cannot open input file
2 - Cannot open output file
5 - Cannot read from input file
6 - Cannot write to output file
8 - Compression error
119 - User cancel
400 - Cannot write to temporary file
403 - File access error
405 - Cannot open temp file
407 - Cannot create temp file

◆ Compresslz5()

int __stdcall Compresslz5 ( char * Inputfile,
char * OutPutFile,
int CompressionLevel )

◆ CompressLz5_k()

int __stdcall CompressLz5_k ( char * Inputfile,
char * OutPutFile,
int CompressionLevel )

◆ DecompressLz5()

int __stdcall DecompressLz5 ( char * Inputfile,
char * OutPutFile )

◆ dprintf()

void dprintf ( char * format,
... )

◆ get_multithread_progress__6()

int __amandacall get_multithread_progress__6 ( void )

◆ get_progress_l5___ar()

int __stdcall get_progress_l5___ar ( void )

◆ getcpuname_k()

char * getcpuname_k ( void )

◆ getprocessorbrandstring_k()

char * getprocessorbrandstring_k ( void )

◆ interface1__6()

int __stdcall interface1__6 ( __INT32_OR_INT64 argumento1,
__INT32_OR_INT64 argumento2,
__INT32_OR_INT64 argumento3,
__INT32_OR_INT64 argumento4 )

◆ IsAMD64()

int __stdcall IsAMD64 ( void )

◆ lz5compress()

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

◆ lz5compress_k()

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

◆ lz5uncompress()

int lz5uncompress ( char * input,
char * output )

◆ pause_l5___aakp_l5___ar()

int __stdcall pause_l5___aakp_l5___ar ( void )

◆ pedro_dprintf()

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

◆ pedro_dprintf2()

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

pedro_dprintf2 is my variant of my debug function because too much calls to pedro_dprintf these days, I am lazy, sorry....

em brotli or brotli2

Parameters
amanda_levelif equal or above 0 print the string
formatprintf based format
...

◆ removedordeespaconofinal()

void removedordeespaconofinal ( char * path)

◆ removedordeespaconoinicio()

void removedordeespaconoinicio ( char * path)

◆ resume_l5___aakp_l5___ar()

int __stdcall resume_l5___aakp_l5___ar ( void )

◆ uncompress_l5___rspk_ar()

int __stdcall uncompress_l5___rspk_ar ( char * Inputfile_arp,
char * OutPutFile_arp,
int n_threads_z__,
char * temp_path_z_S2__,
int * cores_used_z__ )

function to uncompress a lz5 file

Parameters
Inputfile_arputf-8 encoded input file
OutPutFile_arputf-8 encoded output file
n_threads_z__number of threads to use, 0 to detect cores to use or 1 to 128 threads to use
temp_path_z_S2__ANSI encoded temp path (soon utf-8)
cores_used_z__it will show the number of threads being used during decompression, because it may not be the number of threads selected on the n_threads_z__ variable
Returns
int

0 - No error
1 - Cannot open input file
2 - Cannot open output file
5 - Cannot read from input file
6 - Cannot write to output file
7 - Invalid lz5 compressed file
119 - User cancel
405 - Cannot open output file
407 - Cannot create a temp file

◆ yasmin_charlotte_pereira_dprintf()

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

Variable Documentation

◆ cores_used_z__6

int* cores_used_z__6 = NULL

◆ intcancel__6

int intcancel__6

◆ intpause__6

int intpause__6

◆ intstatus__6

int intstatus__6

◆ is_multi_thread_z__6

bool is_multi_thread_z__6
extern

◆ lzop2percent

int lzop2percent
extern

◆ n_threads_z__6

int n_threads_z__6 = 1

◆ temp_path_z__6

char temp_path_z__6[AMANDA__SIZE]

the temp path to be used...

◆ unicodemode__6

int unicodemode__6 = 0