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 10EXTERN_C_BEGIN 11 12typedef SizeT (*Func_Bra)(Byte *data, SizeT size, UInt32 ip, int encoding); 13 14EXTERN_C_END 15 16namespace NCompress { 17namespace NBranch { 18 19class CCoder: 20 public ICompressFilter, 21 public CMyUnknownImp 22{ 23 UInt32 _bufferPos; 24 int _encode; 25 Func_Bra BraFunc; 26public: 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