#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>
|
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 __cdecl | dprintf (char *format,...) |
|
HANDLE | lfopen (const char *szFileName, char *pMode) |
|
void | lfclose (HANDLE hFile) |
|
__int64 | lfseek (HANDLE hFile, __int64 iDistance, int iMode) |
|
__int64 | lftell (HANDLE hFile) |
|
__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)
|
|
unsigned long | lfread (void *pBuffer, unsigned long ulCount, HANDLE hFile) |
|
unsigned long | lfwrite (void *pBuffer, unsigned long ulCount, HANDLE hFile) |
|
__int64 | lffilesize_gzip2 (const char *szFileName) |
| funcao repetida pra pegar o tamanho do arquivo em utf-8
|
|
◆ AMANDA__SIZE_ww
#define AMANDA__SIZE_ww ((32767 * 2) + 2) /* having fun... */ |
The maximum size of an utf-8 encoded filename with the max limit of a file in Windows
◆ uchar
#define uchar unsigned char |
◆ uint
#define uint unsigned int |
◆ ushort
#define ushort unsigned short |
◆ dprintf()
void __cdecl dprintf |
( |
char * | format, |
|
|
| ... ) |
|
extern |
◆ 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
-
szFileName | utf-8 encoded filename |
- Returns
- __int64
- Parameters
-
szFileName | the utf-8 encoded input file |
- Returns
- __int64
- Parameters
-
szFileName | utf-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
-
szFileName | the utf-8 encoded input file |
- Returns
- __int64
◆ lffilesize_gzip2()
__int64 lffilesize_gzip2 |
( |
const char * | szFileName | ) |
|
funcao repetida pra pegar o tamanho do arquivo em utf-8
- Parameters
-
szFileName | utf-8 encoded filename |
- Returns
- __int64 the size or 0 if error (its ok for my point of view)
◆ lfopen()
HANDLE lfopen |
( |
const char * | szFileName, |
|
|
char * | pMode ) |
◆ lfread()
unsigned long lfread |
( |
void * | pBuffer, |
|
|
unsigned long | ulCount, |
|
|
HANDLE | hFile ) |
◆ lfseek()
__int64 lfseek |
( |
HANDLE | hFile, |
|
|
__int64 | iDistance, |
|
|
int | iMode ) |
◆ lftell()
__int64 lftell |
( |
HANDLE | hFile | ) |
|
◆ lfwrite()
unsigned long lfwrite |
( |
void * | pBuffer, |
|
|
unsigned long | ulCount, |
|
|
HANDLE | hFile ) |
◆ 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_level | if equal or above 0 print the string |
format | printf 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
-
- Returns
- WCHAR*