|
std::string | decompress (const std::string_view &s) override |
|
std::string | decompress (const void *data, size_t size) override |
|
std::string | decompressFile (const fs::path &path) override |
|
const std::string & | name () const override |
|
virtual | ~IDecompressor ()=default |
|
virtual std::string | decompress (const std::string_view &input)=0 |
|
virtual std::string | decompress (const void *data, size_t size)=0 |
|
virtual std::string | decompressFile (const fs::path &path)=0 |
|
virtual const std::string & | name () const=0 |
|
|
unsigned int | pos_of_char (const unsigned char chr) |
|
|
static const std::string | NAME = "base64" |
|
◆ decompress() [1/2]
std::string tson::Base64Decompressor::decompress |
( |
const std::string_view & |
input | ) |
|
|
inlineoverridevirtual |
◆ decompress() [2/2]
std::string tson::Base64Decompressor::decompress |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
◆ decompressFile()
std::string tson::Base64Decompressor::decompressFile |
( |
const fs::path & |
path | ) |
|
|
inlineoverridevirtual |
◆ name()
const std::string & tson::Base64Decompressor::name |
( |
| ) |
const |
|
inlineoverridevirtual |
If the name matches with 'compression' or 'encoding' the decompress() function will be called automatically for the actual Layer. Encoding-related matching is handled first!
Known values:
compression: zlib, gzip, zstd (since Tiled 1.3) or empty (default) (tilelayer only). encoding: csv (default) or base64 (tilelayer only).
- Returns
Implements tson::IDecompressor< std::string_view, std::string >.
The documentation for this class was generated from the following file: