Ejemplo n.º 1
0
// Функция упаковки
int DELTA_METHOD::compress (CALLBACK_FUNC *callback, void *auxdata)
{
  // Use faster function from DLL if possible
  static FARPROC f = LoadFromDLL ("delta_compress");
  if (!f) f = (FARPROC) delta_compress;

  return ((int (__cdecl *)(MemSize, int, CALLBACK_FUNC*, void*)) f)
                          (BlockSize, ExtendedTables, callback, auxdata);
}
Ejemplo n.º 2
0
// Функция распаковки
int DICT_METHOD::decompress (CALLBACK_FUNC *callback, void *auxdata)
{
  // Use faster function from DLL if possible
  static FARPROC f = LoadFromDLL ("dict_decompress");
  if (!f) f = (FARPROC) dict_decompress;

  return ((int (*)(MemSize, int, int, int, int, int, int, CALLBACK_FUNC*, void*)) f)
                  (BlockSize, MinCompression, MinWeakChars, MinLargeCnt, MinMediumCnt, MinSmallCnt, MinRatio, callback, auxdata);
}
Ejemplo n.º 3
0
// Функция упаковки
int REP_METHOD::compress (CALLBACK_FUNC *callback, void *auxdata)
{
  // Use faster function from DLL if possible
  static FARPROC f = LoadFromDLL ("rep_compress");
  if (!f) f = (FARPROC) rep_compress;

  return ((int (__cdecl *)(MemSize, int, int, int, int, int, int, CALLBACK_FUNC*, void*)) f)
                          (BlockSize, MinCompression, MinMatchLen, Barrier, SmallestLen, HashSizeLog, Amplifier, callback, auxdata);
}