A class to decompress prefix-compressed strings. More...
#include <StringDecompressorPrefix.h>
Public Member Functions | |
StringDecompressorPrefix () | |
Constructor; creates a new decompressor. More... | |
virtual void | reset () |
Resets and clears the internal state. More... | |
virtual const uint8_t * | add (const uint8_t *next_base) |
Adds (and decompresses) a compressed string. More... | |
virtual size_t | length () const |
Returns the length of the compressed string. More... | |
virtual size_t | length_uncompressed () const |
Returns the length of the uncompressed string. More... | |
virtual void | load (String &str) const |
Returns the uncompressed string. More... | |
Private Attributes | |
String | m_last_string |
The uncompressed string; use load to retrieve it. More... | |
size_t | m_compressed_len |
Length of the compressed string. More... | |
A class to decompress prefix-compressed strings.
Definition at line 41 of file StringDecompressorPrefix.h.
|
inline |
Constructor; creates a new decompressor.
Definition at line 44 of file StringDecompressorPrefix.h.
|
inlinevirtual |
Adds (and decompresses) a compressed string.
The string must have been compressed with StringCompressorPrefix.
next_base | Pointer to the compressed string |
Definition at line 60 of file StringDecompressorPrefix.h.
|
inlinevirtual |
Returns the length of the compressed string.
Definition at line 74 of file StringDecompressorPrefix.h.
|
inlinevirtual |
Returns the length of the uncompressed string.
Definition at line 79 of file StringDecompressorPrefix.h.
|
inlinevirtual |
Returns the uncompressed string.
Definition at line 84 of file StringDecompressorPrefix.h.
|
inlinevirtual |
Resets and clears the internal state.
Definition at line 49 of file StringDecompressorPrefix.h.
|
private |
Length of the compressed string.
Definition at line 93 of file StringDecompressorPrefix.h.
|
private |
The uncompressed string; use load to retrieve it.
Definition at line 90 of file StringDecompressorPrefix.h.