Initial import of XMLTree
[SXSI/XMLTree.git] / libcds / src / static_sequence / wt_coder.cpp
1
2 #include <wt_coder.h>
3
4 wt_coder * wt_coder::load(FILE *fp) {
5   uint rd;
6   if(fread(&rd,sizeof(uint),1,fp)!=1) return NULL;
7   fseek(fp,-sizeof(uint),SEEK_CUR);
8   switch(rd) {
9     case WT_CODER_HUFF_HDR: return wt_coder_huff::load(fp);
10   }
11   return NULL;
12 }