2021-09-28 11:15:54 +00:00
|
|
|
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
namespace nstool
|
|
|
|
{
|
|
|
|
|
|
|
|
void processResFile(const std::shared_ptr<tc::io::IStream>& file, std::map<std::string, std::string>& dict);
|
|
|
|
|
2021-10-02 14:53:21 +00:00
|
|
|
void writeSubStreamToFile(const std::shared_ptr<tc::io::IStream>& in_stream, int64_t offset, int64_t length, const tc::io::Path& out_path, tc::ByteData& cache);
|
2021-09-28 11:15:54 +00:00
|
|
|
void writeSubStreamToFile(const std::shared_ptr<tc::io::IStream>& in_stream, int64_t offset, int64_t length, const tc::io::Path& out_path, size_t cache_size = 0x10000);
|
2021-10-02 14:53:21 +00:00
|
|
|
void writeStreamToFile(const std::shared_ptr<tc::io::IStream>& in_stream, const tc::io::Path& out_path, tc::ByteData& cache);
|
2021-09-28 11:15:54 +00:00
|
|
|
void writeStreamToFile(const std::shared_ptr<tc::io::IStream>& in_stream, const tc::io::Path& out_path, size_t cache_size = 0x10000);
|
2021-10-02 14:53:21 +00:00
|
|
|
void writeStreamToStream(const std::shared_ptr<tc::io::IStream>& in_stream, const std::shared_ptr<tc::io::IStream>& out_stream, tc::ByteData& cache);
|
2021-09-28 11:15:54 +00:00
|
|
|
void writeStreamToStream(const std::shared_ptr<tc::io::IStream>& in_stream, const std::shared_ptr<tc::io::IStream>& out_stream, size_t cache_size = 0x10000);
|
|
|
|
|
2021-10-02 14:53:21 +00:00
|
|
|
|
2021-10-02 03:14:50 +00:00
|
|
|
std::string getTruncatedBytesString(const byte_t* data, size_t len);
|
2021-09-29 10:28:49 +00:00
|
|
|
std::string getTruncatedBytesString(const byte_t* data, size_t len, bool do_not_truncate);
|
|
|
|
|
2021-09-28 11:15:54 +00:00
|
|
|
}
|