Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
compress2dll.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 "stdio_v2.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   "3.3.1 build 998"
 
#define __INT32_OR_INT64   int
 

Functions

int __amandacall get_multithread_progress_14 (void)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
int __stdcall IsAMD64 (void)
 
int compress2_uncompress_14 (char *input, char *output)
 
int compress2_compress (char *input, char *output, int levelin)
 
int compress2_compress_k_14 (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_14 (__INT32_OR_INT64 argumento1, __INT32_OR_INT64 argumento2, __INT32_OR_INT64 argumento3, __INT32_OR_INT64 argumento4)
 
int __stdcall compress_c5___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 file in the not standar
compress2 method (compress with multi-thread)
 
int __stdcall uncompress_c5___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 compress2 file.
 
int __stdcall get_progress_c5___ar (void)
 
int __stdcall pause_c5___aakp_c5___ar (void)
 
int __stdcall resume_c5___aakp_c5___ar (void)
 
int __stdcall cancel_c5___aakp_c5___ar (void)
 

Variables

intcores_used_z_14 = NULL
 
bool is_multi_thread_z_14
 
int n_threads_z_14 = 1
 
char temp_path_z_14 [AMANDA__SIZE]
 
int intpause_14
 
int intcancel_14
 
int intstatus_14
 

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   "3.3.1 build 998"

Function Documentation

◆ cancel_c5___aakp_c5___ar()

int __stdcall cancel_c5___aakp_c5___ar ( void )

◆ compress2_compress()

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

◆ compress2_compress_k_14()

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

◆ compress2_uncompress_14()

int compress2_uncompress_14 ( char * input,
char * output )

◆ compress_c5___rspk_ar()

int __stdcall compress_c5___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 file in the not standar
compress2 method (compress with multi-thread)

Parameters
Input_amanda_fileutf-8 encoded input file
OutPut_ricardo_Fileutf-8 encoded output file
Compression_juliete_Levelnot in use
n_threads_z__0 to use all the cores or 1 to 128 threads to use
temp_path_z__ANSI based temp folder (soon utf-8)
Returns
int
0 - No error
1 - Cannot open input file
2 - Cannot open output file
6 - Cannot write to output file
8 - Compression error
119 - User cancel
400 - Cannot write to temp file
403 - File access error
405 - Cannot open temp file
407 - Cannot create temp file

◆ dprintf()

void dprintf ( char * format,
... )

◆ get_multithread_progress_14()

int __amandacall get_multithread_progress_14 ( void )

◆ get_progress_c5___ar()

int __stdcall get_progress_c5___ar ( void )

◆ getcpuname_k()

char * getcpuname_k ( void )

◆ getprocessorbrandstring_k()

char * getprocessorbrandstring_k ( void )

◆ interface1_14()

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

◆ IsAMD64()

int __stdcall IsAMD64 ( void )

◆ pause_c5___aakp_c5___ar()

int __stdcall pause_c5___aakp_c5___ar ( void )

◆ pedro_dprintf()

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

◆ removedordeespaconofinal()

void removedordeespaconofinal ( char * path)

◆ removedordeespaconoinicio()

void removedordeespaconoinicio ( char * path)

◆ resume_c5___aakp_c5___ar()

int __stdcall resume_c5___aakp_c5___ar ( void )

◆ uncompress_c5___rspk_ar()

int __stdcall uncompress_c5___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 compress2 file.

Parameters
Inputfile_arputf-8 encoded input compressed file
OutPutFile_arputf-8 encoded output uncompressed file
n_threads_z__0 to detect the cores and use it, or 1 to 128 threads
temp_path_z_S2__ANSI path to store the temporary file (soon it will be utf-8 based)
cores_used_z__the number of threads being used for decompression, may be different of n_threads_z__, if one thread was selected to compress then the decompression will occur with one thread too
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 destination file
7 - Invalid compress2 file
77 - Already running
119 - User cancel
403 - File access error
405 - Cannot open temp file
407 - Cannot create temp file
777 - Decompression error

Variable Documentation

◆ cores_used_z_14

int* cores_used_z_14 = NULL

◆ intcancel_14

int intcancel_14

◆ intpause_14

int intpause_14

◆ intstatus_14

int intstatus_14

◆ is_multi_thread_z_14

bool is_multi_thread_z_14
extern

◆ n_threads_z_14

int n_threads_z_14 = 1

◆ temp_path_z_14

char temp_path_z_14[AMANDA__SIZE]