nstool/lib/fnd/file_io.h

21 lines
528 B
C
Raw Normal View History

2017-07-02 15:18:59 +00:00
#pragma once
#include <string>
#include <fnd/memory_blob.h>
namespace fnd
{
class FileIO
{
public:
static void ReadFile(const std::string& path, MemoryBlob& blob);
//static void ReadFile(const char* path, MemoryBlob& blob, size_t offset, size_t size);
static void WriteFile(const std::string& path, const MemoryBlob& blob);
2017-07-05 09:17:04 +00:00
static void WriteFile(const std::string& path, const u8* data, size_t len);
2017-07-02 15:18:59 +00:00
//static void WriteFile(const char* path, const MemoryBlob& blob, size_t offset, size_t size);
private:
};
}