Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
brotli2_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 "brotli2_thread.c"

Macros

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

Functions

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)
 
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)
 
__int64 lffilesize_dl (const char *szFileName)
 default function to get the size of files with Unicode support
 
HANDLE lfopen (const char *szFileName, char *pMode)
 
void lfclose (HANDLE hFile)
 
int createtempfilename_and_keep_z_7 (char *path1, char *out_z, char *signature_z)
 
int __valquiriacall compress2_uncompress_k_real_mt_z_7 (char *input_z, char *output_z)
 

Variables

int64_t max_memory_size_k__p_7
 
bool is_multi_thread_z_7
 
char temp_files_z_7 [129][2048]
 
char temp_path_z_7 []
 
int finished_7
 
int intcancel_7
 
int intpause_7
 
int intstatus_7
 
int n_threads_z_7
 
int thread_return_value_z_7
 
int64_t bytes__read_thread_z_7 [129]
 
int64_t totalbytes_z_7
 
__INT32_OR_INT64 my_thread_handle_7 [129]
 
intcores_used_z_7
 

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_7()

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

◆ createtempfilename_and_keep_z_7()

int createtempfilename_and_keep_z_7 ( 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

◆ lffilesize_dl()

__int64 lffilesize_dl ( const char * szFileName)

default function to get the size of files with Unicode support

Parameters
szFileNameutf-8 encoded file
Returns
__int64 the size of the file or 0

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

int64_t bytes__read_thread_z_7[129]
extern

◆ cores_used_z_7

int* cores_used_z_7
extern

◆ finished_7

int finished_7
extern

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

◆ max_memory_size_k__p_7

int64_t max_memory_size_k__p_7
extern

◆ my_thread_handle_7

__INT32_OR_INT64 my_thread_handle_7[129]
extern

◆ n_threads_z_7

int n_threads_z_7
extern

◆ temp_files_z_7

char temp_files_z_7[129][2048]
extern

◆ temp_path_z_7

char temp_path_z_7[]
extern

◆ thread_return_value_z_7

int thread_return_value_z_7
extern

◆ totalbytes_z_7

int64_t totalbytes_z_7
extern