1 //========================================================================
5 // Copyright 1999-2003 Glyph & Cog, LLC
7 //========================================================================
12 #ifdef USE_GCC_PRAGMAS
16 #include "goo/gtypes.h"
18 //------------------------------------------------------------------------
20 typedef void (*FoFiOutputFunc
)(void *stream
, const char *data
, int len
);
22 //------------------------------------------------------------------------
24 //------------------------------------------------------------------------
33 FoFiBase(char *fileA
, int lenA
, GBool freeFileDataA
);
34 static char *readFile(char *fileName
, int *fileLen
);
36 // S = signed / U = unsigned
37 // 8/16/32/Var = word length, in bytes
39 int getS8(int pos
, GBool
*ok
);
40 int getU8(int pos
, GBool
*ok
);
41 int getS16BE(int pos
, GBool
*ok
);
42 int getU16BE(int pos
, GBool
*ok
);
43 int getS32BE(int pos
, GBool
*ok
);
44 Guint
getU32BE(int pos
, GBool
*ok
);
45 Guint
getU32LE(int pos
, GBool
*ok
);
46 Guint
getUVarBE(int pos
, int size
, GBool
*ok
);
48 GBool
checkRegion(int pos
, int size
);