Zigzag.hh

Go to the documentation of this file.
00001 
00019 #ifndef avro_Encoding_hh__
00020 #define avro_Encoding_hh__
00021 
00022 #include <stdint.h>
00023 #include <boost/array.hpp>
00024 
00027 
00028 namespace avro {
00029 
00030 uint64_t encodeZigzag64(int64_t input);
00031 int64_t decodeZigzag64(uint64_t input);
00032 
00033 uint32_t encodeZigzag32(int32_t input);
00034 int32_t decodeZigzag32(uint32_t input);
00035 
00036 size_t encodeInt32(int32_t input, boost::array<uint8_t, 5> &output);
00037 size_t encodeInt64(int64_t input, boost::array<uint8_t, 10> &output);
00038 
00039 } // namespace avro
00040 
00041 #endif
Generated on Thu Sep 2 18:40:54 2010 for Avro C++ by  doxygen 1.6.3