1 //========================================================================
5 // Copyright 1999-2003 Glyph & Cog, LLC
7 //========================================================================
14 #ifdef USE_GCC_PRAGMAS
20 //------------------------------------------------------------------------
22 typedef void (*FoFiOutputFunc
)(void *stream
, char *data
, int len
);
24 //------------------------------------------------------------------------
26 //------------------------------------------------------------------------
35 FoFiBase(char *fileA
, int lenA
, GBool freeFileDataA
);
36 static char *readFile(char *fileName
, int *fileLen
);
38 // S = signed / U = unsigned
39 // 8/16/32/Var = word length, in bytes
41 int getS8(int pos
, GBool
*ok
);
42 int getU8(int pos
, GBool
*ok
);
43 int getS16BE(int pos
, GBool
*ok
);
44 int getU16BE(int pos
, GBool
*ok
);
45 int getS32BE(int pos
, GBool
*ok
);
46 Guint
getU32BE(int pos
, GBool
*ok
);
47 Guint
getUVarBE(int pos
, int size
, GBool
*ok
);
49 GBool
checkRegion(int pos
, int size
);