Namespaces | Functions

Zigzag.hh File Reference

Functions for encoding and decoding integers with zigzag compression. More...

#include <stdint.h>
#include <boost/array.hpp>

Go to the source code of this file.

Namespaces

namespace  avro
 

A bunch of templates and specializations for encoding and decoding specific types.


Functions

uint64_t avro::encodeZigzag64 (int64_t input)
int64_t avro::decodeZigzag64 (uint64_t input)
uint32_t avro::encodeZigzag32 (int32_t input)
int32_t avro::decodeZigzag32 (uint32_t input)
size_t avro::encodeInt32 (int32_t input, boost::array< uint8_t, 5 > &output)
size_t avro::encodeInt64 (int64_t input, boost::array< uint8_t, 10 > &output)

Detailed Description

Functions for encoding and decoding integers with zigzag compression.