mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CFileHelpers: Rework FileBuf handling
FileBuf: Reserve memory only when it is needed (copyFile)
copyFile: Reserve for small files, only as much memory as is required
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6a9c08ae90
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-06 (Tue, 06 Sep 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -84,10 +84,11 @@ struct helpersDebugInfo {
|
||||
class CFileHelpers
|
||||
{
|
||||
private:
|
||||
unsigned long FileBufSize;
|
||||
char *FileBuf;
|
||||
uint32_t FileBufMaxSize;
|
||||
int fd1, fd2;
|
||||
|
||||
char* initFileBuf(char* buf, uint32_t size);
|
||||
char* deleteFileBuf(char* buf);
|
||||
bool ConsoleQuiet;
|
||||
helpersDebugInfo DebugInfo;
|
||||
void setDebugInfo(const char* msg, const char* file, const char* func, int line);
|
||||
|
Reference in New Issue
Block a user