ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <ZBlock.hpp>
Classes | |
struct | Mode |
Public Member Functions | |
ZBlock () | |
const DataBlock & | compress (const DataBlock &data, const Mode::_v mode=Mode::Default) noexcept(false) |
const DataBlock & | uncompress (const DataBlock &zdata) noexcept(false) |
Public Member Functions inherited from anna::DataBlock | |
DataBlock (const bool deepCopy=false) | |
DataBlock (const char *buffer, const int size, const bool deepCopy=false) noexcept(false) | |
DataBlock (const DataBlock &other) noexcept(false) | |
virtual | ~DataBlock () |
int | getMaxSize () const |
int | getSize () const |
const char * | getData () const |
bool | isEmpty () const |
bool | deepCopy () const |
void | setSize (const int size) noexcept(false) |
DataBlock & | operator+= (const char c) noexcept(false) |
DataBlock & | operator+= (const DataBlock &right) noexcept(false) |
DataBlock & | operator+= (const std::string &str) noexcept(false) |
const char | operator[] (const int pos) const noexcept(false) |
char & | operator[] (const int pos) noexcept(false) |
void | append (const char *data, const int len) noexcept(false) |
void | append (const DataBlock &other) noexcept(false) |
void | assign (const DataBlock &right) noexcept(false) |
void | assign (const char *buffer, const int size) noexcept(false) |
DataBlock & | operator= (const DataBlock &right) noexcept(false) |
DataBlock & | operator= (const char c) noexcept(false) |
DataBlock & | operator= (const std::string &str) noexcept(false) |
void | allocate (const int nbytes) noexcept(false) |
void | clear () noexcept(false) |
void | remove (const int pos, const int nbytes) noexcept(false) |
void | remove (const int nbytes) noexcept(false) |
std::string | asString (const int characterByLine=24) const |
Additional Inherited Members | |
Protected Member Functions inherited from anna::DataBlock | |
void | initialize (const char *buffer, const int size) noexcept(false) |
void | setBuffer (const char *buffer) |
void | setMaxSize (const int maxSize) |
Facilita la compresión y descompresión de bloques de datos.
Para más información:
Para optimizar el acceso no se ha establecido ningun tipo de proteccion para ejecucion MT.
|
inline |
Constructor vacio.
|
noexcept |
Comprime el contenido del bloque de datos recibido como parámetro y lo guarda en la estructura interna.
data | Bloque de datos a comprimir. |
mode | Modo de compresión realizado. |
Descomprime el bloque de datos recibido como parámetro.
zdata | Bloque de datos obtenido como resultado de aplicar con ZBlock::compress. |
originalSize | Tamaño original que tenía el buffer antes de ser comprimido. |