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

15 lines
387 B
C++

#pragma once
#include <string>
#include <fnd/MemoryBlob.h>
namespace fnd
{
namespace io
{
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);
void writeFile(const std::string& path, const byte_t* data, size_t len);
}
}