nstool/lib/libfnd/include/fnd/io.h

19 lines
622 B
C
Raw Normal View History

#pragma once
#include <string>
#include <fnd/MemoryBlob.h>
namespace fnd
{
namespace io
{
2018-04-15 02:36:43 +00:00
size_t getFileSize(const std::string& path);
void readFile(const std::string& path, MemoryBlob& blob);
void readFile(const std::string& path, size_t offset, size_t len, MemoryBlob& blob);
void writeFile(const std::string& path, const MemoryBlob& blob);
2018-03-22 05:26:22 +00:00
void writeFile(const std::string& path, const byte_t* data, size_t len);
2018-04-15 06:00:46 +00:00
void makeDirectory(const std::string& path);
2018-04-25 04:59:42 +00:00
void getEnvironVar(std::string& var, const std::string& key);
void makePath(std::string& out, const std::vector<std::string>& elements);
}
}