00001 #ifndef MEGATREE_COMPRESS_H 00002 #define MEGATREE_COMPRESS_H 00003 00004 #include <megatree/storage.h> 00005 00006 namespace megatree 00007 { 00008 00009 void bitcpy(uint64_t& dest, uint64_t src, unsigned dest_pos, unsigned src_pos, unsigned num); 00010 00011 void compress(const ByteVec& data, ByteVec& res); 00012 void extract(const ByteVec& data, ByteVec& res); 00013 00014 00015 }// namespace 00016 00017 #endif