Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (25 sloc) 0.58 kb
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1 #ifndef _RAR_RS_
2 #define _RAR_RS_
3
4 #define MAXPAR 255
5 #define MAXPOL 512
6
7 class RSCoder
8 {
9 private:
10 void gfInit();
11 int gfMult(int a,int b);
12 void pnInit();
13 void pnMult(int *p1,int *p2,int *r);
14
15 int gfExp[MAXPOL];
16 int gfLog[MAXPAR+1];
17
18 int GXPol[MAXPOL*2];
19
20 int ErrorLocs[MAXPAR+1],ErrCount;
21 int Dn[MAXPAR+1];
22
23 int ParSize;
24 int PolB[MAXPOL];
25 bool FirstBlockDone;
26 public:
27 RSCoder(int ParSize);
28 void Encode(byte *Data,int DataSize,byte *DestData);
29 bool Decode(byte *Data,int DataSize,int *EraLoc,int EraSize);
30 };
31
32 #endif
Something went wrong with that request. Please try again.