~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to libclamav/7z/Bcj2.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Bcj2.h -- Converter for x86 code (BCJ2)
2
 
2008-10-04 : Igor Pavlov : Public domain */
3
 
 
4
 
#ifndef __BCJ2_H
5
 
#define __BCJ2_H
6
 
 
7
 
#include "Types.h"
8
 
 
9
 
/*
10
 
Conditions:
11
 
  outSize <= FullOutputSize,
12
 
  where FullOutputSize is full size of output stream of x86_2 filter.
13
 
 
14
 
If buf0 overlaps outBuf, there are two required conditions:
15
 
  1) (buf0 >= outBuf)
16
 
  2) (buf0 + size0 >= outBuf + FullOutputSize).
17
 
 
18
 
Returns:
19
 
  SZ_OK
20
 
  SZ_ERROR_DATA - Data error
21
 
*/
22
 
 
23
 
int Bcj2_Decode(
24
 
    const Byte *buf0, SizeT size0,
25
 
    const Byte *buf1, SizeT size1,
26
 
    const Byte *buf2, SizeT size2,
27
 
    const Byte *buf3, SizeT size3,
28
 
    Byte *outBuf, SizeT outSize);
29
 
 
30
 
#endif