00001 #ifndef __J2K__LZH__LZ_CPP__ 00002 #define __J2K__LZH__LZ_CPP__ 00003 00004 #define LZHLINTERNAL 00005 00006 #include <j2k/LZH/_huff.h> 00007 #include <j2k/LZH/_lz.h> 00008 00009 inline LZHASH _calcHash( const BYTE* src ) 00010 { 00011 LZHASH hash = 0; 00012 const BYTE* pEnd = src + LZMATCH; 00013 for( const BYTE* p = src; p < pEnd ; ) 00014 { 00015 UPDATE_HASH( hash, *p++ ); 00016 } 00017 return hash; 00018 } 00019 00020 #include <j2k/LZH/LZBuffer.cpp> 00021 #include <j2k/LZH/LZHLCompressor.cpp> 00022 00023 #endif