Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
lz5_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 "stdio_v2.h"
#include "stdio_v3.h"
#include "lz5_thread.c"

Macros

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

Functions

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_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....
 
void pedro_dprintf (int amanda_level, char *format,...)
 
WCHAR * amanda_utf8towide_1_v27_no_oct (char *pUTF8)
 
__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)
 
HANDLE lfopen (const char *szFileName, char *pMode)
 
void lfclose (HANDLE hFile)
 
int createtempfilename_and_keep_z__6 (char *path1, char *out_z, char *signature_z)
 
int __valquiriacall compress2_uncompress_k_real_mt_z (char *input_z, char *output_z)
 

Variables

int64_t max_memory_size_k__p__6
 
bool is_multi_thread_z__6
 
char temp_files_z__6 [129][2048]
 
char temp_path_z__6 []
 the temp path to be used...
 
int finished__6
 
int intcancel__6
 
int intpause__6
 
int intstatus__6
 
int n_threads_z__6
 
int thread_return_value_z__6
 
int64_t bytes__read_thread_z__6 [129]
 
int64_t totalbytes_z__6
 
uint64_t bytes_in_each_slice_z [129]
 
uint64_t offset_of_each_slice_z [129]
 
__INT32_OR_INT64 my_thread_handle__6 [129]
 
intcores_used_z__6
 

Macro Definition Documentation

◆ 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

◆ AMANDA__SIZE_ww

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

◆ CHUNK

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

Function Documentation

◆ amanda_utf8towide_1_v27_no_oct()

WCHAR * amanda_utf8towide_1_v27_no_oct ( char * pUTF8)

To convert an utf-8 encoded filename to a wide string (WCHAR *), we . provide two functions that are exactly the same because someone may use it in multi-thread code

Parameters
pUTF8the input utf-8 encoded filename
Returns
the static allocated WCHAR array with the filename as wide string

◆ compress2_uncompress_k_real_mt_z()

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

◆ createtempfilename_and_keep_z__6()

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

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

◆ lfopen()

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

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

int64_t bytes__read_thread_z__6[129]
extern

◆ bytes_in_each_slice_z

uint64_t bytes_in_each_slice_z[129]

◆ cores_used_z__6

int* cores_used_z__6
extern

◆ finished__6

int finished__6
extern

◆ intcancel__6

int intcancel__6
extern

◆ intpause__6

int intpause__6
extern

◆ intstatus__6

int intstatus__6
extern

◆ is_multi_thread_z__6

bool is_multi_thread_z__6
extern

◆ max_memory_size_k__p__6

int64_t max_memory_size_k__p__6

◆ my_thread_handle__6

__INT32_OR_INT64 my_thread_handle__6[129]
extern

◆ n_threads_z__6

int n_threads_z__6
extern

◆ offset_of_each_slice_z

uint64_t offset_of_each_slice_z[129]

◆ temp_files_z__6

char temp_files_z__6[129][2048]
extern

◆ temp_path_z__6

char temp_path_z__6[]
extern

the temp path to be used...

◆ thread_return_value_z__6

int thread_return_value_z__6
extern

◆ totalbytes_z__6

int64_t totalbytes_z__6
extern