#include <Syndicate/Data/Rnc.h>
Public Member Functions | |
uint8_t * | unpack (uint8_t *input, unsigned &output_length) const |
bool | isRnc (uint8_t *input) const |
Static Public Member Functions | |
static Rnc * | getInstance (void) |
Private Member Functions | |
Rnc (void) | |
uint16_t | crc (uint8_t const *data, unsigned len) const |
Static Private Attributes | |
static uint16_t | _crctab [256] |
static const uint32_t | _rnc_signature = 0x524E4301 |
Classes | |
struct | Header |
Syndicate::Data::Rnc::Rnc | ( | void | ) | [private] |
static Rnc* Syndicate::Data::Rnc::getInstance | ( | void | ) | [static] |
Get an unique instance of the class.
uint8_t* Syndicate::Data::Rnc::unpack | ( | uint8_t * | input, | |
unsigned & | output_length | |||
) | const |
Unpack the given byte array.
[in] | input | is the compressed data array. |
[out] | output_length | is the uncompressed length |
bool Syndicate::Data::Rnc::isRnc | ( | uint8_t * | input | ) | const |
Identify a data array as compressed or not.
[in] | input | is a buffer to test. |
uint16_t Syndicate::Data::Rnc::crc | ( | uint8_t const * | data, | |
unsigned | len | |||
) | const [private] |
Compute the CRC of a buffer
uint16_t Syndicate::Data::Rnc::_crctab[256] [static, private] |
const uint32_t Syndicate::Data::Rnc::_rnc_signature = 0x524E4301 [static, private] |