Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
FileUtils Class Referencefinal

#include <FileUtils.hpp>

Static Public Member Functions

static bool Read (const fs::path &filename, std::vector< byte > &buffer)
 
static bool ReadString (const fs::path &filename, std::string &buffer)
 
static bool Write (const fs::path &filename, const std::vector< byte > &buffer)
 
static bool WriteString (const fs::path &filename, const std::string &buffer)
 
static void ReadChunksFstream (const fs::path &filename, const std::size_t max_chunk_size, const std::function< bool(std::vector< byte > &&)> &callback)
 
static void ReadChunks (const fs::path &filename, const std::size_t max_chunk_size, const std::function< bool(std::vector< byte > &&)> &callback)
 

Detailed Description

Definition at line 22 of file FileUtils.hpp.

Member Function Documentation

◆ Read()

static bool FileUtils::Read ( const fs::path &  filename,
std::vector< byte > &  buffer 
)
inlinestatic

Definition at line 26 of file FileUtils.hpp.

◆ ReadChunks()

static void FileUtils::ReadChunks ( const fs::path &  filename,
const std::size_t  max_chunk_size,
const std::function< bool(std::vector< byte > &&)> &  callback 
)
inlinestatic

Definition at line 104 of file FileUtils.hpp.

◆ ReadChunksFstream()

static void FileUtils::ReadChunksFstream ( const fs::path &  filename,
const std::size_t  max_chunk_size,
const std::function< bool(std::vector< byte > &&)> &  callback 
)
inlinestatic

Definition at line 81 of file FileUtils.hpp.

◆ ReadString()

static bool FileUtils::ReadString ( const fs::path &  filename,
std::string &  buffer 
)
inlinestatic

Definition at line 41 of file FileUtils.hpp.

◆ Write()

static bool FileUtils::Write ( const fs::path &  filename,
const std::vector< byte > &  buffer 
)
inlinestatic

Definition at line 56 of file FileUtils.hpp.

◆ WriteString()

static bool FileUtils::WriteString ( const fs::path &  filename,
const std::string &  buffer 
)
inlinestatic

Definition at line 67 of file FileUtils.hpp.


The documentation for this class was generated from the following file: