8 class compressed_file_datastream;
9 struct compressed_file_impl;
61 file_ptr = std::make_unique<fc::cfile>();
62 file_ptr->set_file_path(file_path);
71 bool is_open()
const {
return (
bool)file_ptr; }
79 void seek(
long loc );
91 void read(
char* d,
size_t n );
124 std::unique_ptr<fc::cfile> file_ptr;
125 std::unique_ptr<compressed_file_impl> impl;
138 std::vector<char>
d(
s );
147 bool get(
unsigned char& c ) {
return get( *(
char*)&c ); }
165 using std::runtime_error::runtime_error;
wraps boost::filesystem::path to provide platform independent path manipulation.
compressed_file_datastream(compressed_file &cf)
bool read(char *d, size_t s)
bool get(unsigned char &c)
compressed_file_datastream create_datastream()
compressed_file & operator=(compressed_file &&)
compressed_file(fc::path file_path)
compressed_file(compressed_file &&)
auto get_file_path() const
static bool process(const fc::path &input_path, const fc::path &output_path, size_t seek_point_stride)
void read(char *d, size_t n)