mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2025-04-02 10:42:15 -04:00
30 lines
867 B
C++
30 lines
867 B
C++
#pragma once
|
|
|
|
namespace Util
|
|
{
|
|
|
|
// Get the size of a file.
|
|
|
|
size_t FileSize(const std::string& filename);
|
|
size_t FileSize(const std::wstring& filename);
|
|
size_t FileSize(const TCHAR * filename);
|
|
|
|
// Check whenever the file exists
|
|
|
|
bool FileExists(const std::string& filename);
|
|
bool FileExists(const std::wstring& filename);
|
|
bool FileExists(const TCHAR* filename);
|
|
|
|
// Load data from a file
|
|
|
|
std::vector<uint8_t> FileLoad(const std::string& filename);
|
|
std::vector<uint8_t> FileLoad(const std::wstring& filename);
|
|
std::vector<uint8_t> FileLoad(const TCHAR* filename);
|
|
|
|
// Save data to file
|
|
|
|
bool FileSave(const std::string& filename, std::vector<uint8_t> & data);
|
|
bool FileSave(const std::wstring& filename, std::vector<uint8_t>& data);
|
|
bool FileSave(const TCHAR* filename, std::vector<uint8_t>& data);
|
|
|
|
}
|