Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
gzip2__multi.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 <process.h>
#include "win64.h"
#include <zlib.h>
#include "stdio_v2.h"
#include "gzip2_include.h"
#include "gzip2__thread.c"

Macros

#define CHUNK   131072 /* to never change again */
 
#define AMANDA__SIZE_ww   ((32767 * 2) + 2)
 

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....
 
WCHAR * utf8_2_wide_dl (const char *pUTF8)
 my temporary utf8_2_wide_dl function to add full Unicode support and future (when modified) support to long filenames. (jan/2025)
 
void pedro_dprintf (int amanda_level, char *format,...)
 
__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)
 
int createtempfilename_and_keep_z_5 (char *path1, char *out_z, char *signature_z)
 
int __valquiriacall compress2_uncompress_k_real_mt_z_21 (char *input_z, char *output_z)
 

Variables

int64_t max_memory_size_j
 
int64_t totalbytes_z__5
 
int n_threads_z__5
 
int finished__5
 
int intstatus__5
 
int thread_return_value_z__5
 
int pauseflag__5
 
int cancelflag__5
 
int64_t bytes__read_thread_z__5 [129]
 
uint64_t bytes_in_each_slice_z_21 [129]
 
uint64_t offset_of_each_slice_z_21 [129]
 
char temp_path_z__5 []
 
char temp_files_z__5 [129][2048]
 
bool is_multi_thread_z__5
 
__INT32_OR_INT64 my_thread_handle__5 [129]
 
intcores_used_z__5
 

Macro Definition Documentation

◆ AMANDA__SIZE_ww

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

◆ CHUNK

#define CHUNK   131072 /* to never change again */

Function Documentation

◆ compress2_uncompress_k_real_mt_z_21()

int __valquiriacall compress2_uncompress_k_real_mt_z_21 ( char * input_z,
char * output_z )

◆ createtempfilename_and_keep_z_5()

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

◆ 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
Parameters
szFileNameutf-8 encoded filename
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

◆ 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
...

◆ utf8_2_wide_dl()

WCHAR * utf8_2_wide_dl ( const char * pUTF8)

my temporary utf8_2_wide_dl function to add full Unicode support and future (when modified) support to long filenames. (jan/2025)

Parameters
pUTF8
Returns
WCHAR*

Variable Documentation

◆ bytes__read_thread_z__5

int64_t bytes__read_thread_z__5[129]
extern

◆ bytes_in_each_slice_z_21

uint64_t bytes_in_each_slice_z_21[129]

◆ cancelflag__5

int cancelflag__5
extern

◆ cores_used_z__5

int* cores_used_z__5
extern

◆ finished__5

int finished__5
extern

◆ intstatus__5

int intstatus__5
extern

◆ is_multi_thread_z__5

bool is_multi_thread_z__5
extern

◆ max_memory_size_j

int64_t max_memory_size_j
extern

◆ my_thread_handle__5

__INT32_OR_INT64 my_thread_handle__5[129]
extern

◆ n_threads_z__5

int n_threads_z__5
extern

◆ offset_of_each_slice_z_21

uint64_t offset_of_each_slice_z_21[129]

◆ pauseflag__5

int pauseflag__5
extern

◆ temp_files_z__5

char temp_files_z__5[129][2048]
extern

◆ temp_path_z__5

char temp_path_z__5[]
extern

◆ thread_return_value_z__5

int thread_return_value_z__5
extern

◆ totalbytes_z__5

int64_t totalbytes_z__5
extern