uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
buffer.cpp File Reference
#include <map>
#include "buffer.h"
#include <sys/stat.h>
#include "liberror.h"
#include <iostream>
#include <fstream>
#include "libcomm.h"
#include "libuuu.h"
#include "zip.h"
#include "fat.h"
#include "tar.h"
#include <string.h>
#include "bzlib.h"
#include "stdio.h"
#include <limits>
#include "http.h"
#include "zstd.h"
#include "libusb.h"
#include <chrono>
#include "dirent.h"

Classes

class  FSBasic
 
class  FSFlat
 
class  FSNetwork
 
class  FSHttp
 
class  FSHttps
 
class  FSBackFile
 
class  FSZip
 
class  FSTar
 
class  FSFat
 
class  CommonStream
 
class  FSCompressStream
 
class  Bz2stream
 
class  FSBz2
 
class  Gzstream
 
class  FSGz
 
class  ZstdStream
 
class  FSzstd
 
class  FS_DATA
 
class  Bz2FragmentBlock
 

Macros

#define stat_os   stat64
 
#define MAGIC_PATH   '>'
 

Functions

void set_current_dir (const string &dir)
 
int zip_async_load (string zipfile, string fn, shared_ptr< FileBuffer > buff)
 
uint64_t get_file_timesample (string filename)
 
shared_ptr< FileBufferget_file_buffer (string filename, bool async)
 
bool check_file_exist (string filename, bool)
 
int uuu_for_each_ls_file (uuu_ls_file fn, const char *file_path, void *p)
 
void uuu_set_small_mem (uint32_t val)
 
void clean_up_filemap ()
 

Variables

static map< string, shared_ptr< FileBuffer > > g_filebuffer_map
 
static mutex g_mutex_map
 
static bool g_small_memory = true
 
string g_current_dir = ">"
 
FSFlat g_fsflat
 
FSHttp g_fshttp
 
FSHttps g_fshttps
 
FSZip g_fszip
 
FSTar g_fstar
 
FSFat g_fsfat
 
FSBz2 g_fsbz2
 
FSGz g_fsgz
 
FSzstd g_FSzstd
 
static class FS_DATA g_fs_data
 

Macro Definition Documentation

◆ MAGIC_PATH

#define MAGIC_PATH   '>'

◆ stat_os

#define stat_os   stat64

Function Documentation

◆ check_file_exist()

bool check_file_exist ( string filename,
bool start_async_load )

◆ clean_up_filemap()

void clean_up_filemap ( )

◆ get_file_buffer()

shared_ptr< FileBuffer > get_file_buffer ( string filename,
bool async )

◆ get_file_timesample()

uint64_t get_file_timesample ( string filename)

◆ set_current_dir()

void set_current_dir ( const string & dir)

◆ uuu_for_each_ls_file()

int uuu_for_each_ls_file ( uuu_ls_file fn,
const char * file_path,
void * p )

◆ uuu_set_small_mem()

void uuu_set_small_mem ( uint32_t val)

◆ zip_async_load()

int zip_async_load ( string zipfile,
string fn,
shared_ptr< FileBuffer > buff )

Variable Documentation

◆ g_current_dir

string g_current_dir = ">"

◆ g_filebuffer_map

map<string, shared_ptr<FileBuffer> > g_filebuffer_map
static

◆ g_fs_data

class FS_DATA g_fs_data
static

◆ g_fsbz2

FSBz2 g_fsbz2
static

◆ g_fsfat

FSFat g_fsfat
static

◆ g_fsflat

FSFlat g_fsflat
static

◆ g_fsgz

FSGz g_fsgz
static

◆ g_fshttp

FSHttp g_fshttp
static

◆ g_fshttps

FSHttps g_fshttps
static

◆ g_fstar

FSTar g_fstar
static

◆ g_fszip

FSZip g_fszip
static

◆ g_FSzstd

FSzstd g_FSzstd
static

◆ g_mutex_map

mutex g_mutex_map
static

◆ g_small_memory

bool g_small_memory = true
static