Tileson 1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tson::Base64Decompressor Class Reference

#include <Base64Decompressor.hpp>

Inheritance diagram for tson::Base64Decompressor:
tson::IDecompressor< std::string_view, std::string >

Public Member Functions

const std::string & name () const override
 
std::string decompress (const std::string_view &s) override
 
std::string decompressFile (const fs::path &path) override
 
std::string decompress (const void *data, size_t size) override
 
- Public Member Functions inherited from tson::IDecompressor< std::string_view, std::string >
virtual ~IDecompressor ()=default
 

Member Function Documentation

◆ decompress() [1/2]

std::string tson::Base64Decompressor::decompress ( const std::string_view &  input)
inlineoverridevirtual

Used primarily for Tiled related decompression.

Parameters
inputInput data
Returns
Decompressed data

Implements tson::IDecompressor< std::string_view, std::string >.

◆ decompress() [2/2]

std::string tson::Base64Decompressor::decompress ( const void *  data,
size_t  size 
)
inlineoverridevirtual

UNUSED! Does nothing

Parameters
path
Returns

Implements tson::IDecompressor< std::string_view, std::string >.

◆ decompressFile()

std::string tson::Base64Decompressor::decompressFile ( const fs::path &  path)
inlineoverridevirtual

UNUSED! Does nothing

Parameters
path
Returns

Implements tson::IDecompressor< std::string_view, std::string >.

◆ 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: