Home | History | Annotate | Download | only in Compress
      1 // BranchMisc.h
      2 
      3 #ifndef __COMPRESS_BRANCH_MISC_H
      4 #define __COMPRESS_BRANCH_MISC_H
      5 
      6 #include "../../Common/MyCom.h"
      7 
      8 #include "../ICoder.h"
      9 
     10 EXTERN_C_BEGIN
     11 
     12 typedef SizeT (*Func_Bra)(Byte *data, SizeT size, UInt32 ip, int encoding);
     13 
     14 EXTERN_C_END
     15 
     16 namespace NCompress {
     17 namespace NBranch {
     18 
     19 class CCoder:
     20   public ICompressFilter,
     21   public CMyUnknownImp
     22 {
     23   UInt32 _bufferPos;
     24   int _encode;
     25   Func_Bra BraFunc;
     26 public:
     27   MY_UNKNOWN_IMP1(ICompressFilter);
     28   INTERFACE_ICompressFilter(;)
     29 
     30   CCoder(Func_Bra bra, int encode):  _bufferPos(0), _encode(encode), BraFunc(bra) {}
     31 };
     32 
     33 }}
     34 
     35 #endif
     36