26#define GD_IO_EOF_CHK(r) \
39 buf[1] = (w / 256) & 0xff;
45 (ctx->
putC) (ctx, c & 0xff);
56 (ctx->
putC) (ctx, (
unsigned char) (w >> 8));
57 (ctx->
putC) (ctx, (
unsigned char) (w & 0xFF));
64 (ctx->
putC) (ctx, (
unsigned char) (w >> 24));
65 (ctx->
putC) (ctx, (
unsigned char) ((w >> 16) & 0xFF));
66 (ctx->
putC) (ctx, (
unsigned char) ((w >> 8) & 0xFF));
67 (ctx->
putC) (ctx, (
unsigned char) (w & 0xFF));
73 return ((ctx->
getC) (ctx));
79 r = (ctx->
getC) (ctx);
88 r = (ctx->
getC) (ctx);
91 r = (ctx->
getC) (ctx);
100 int high = 0, low = 0;
101 low = (ctx->
getC) (ctx);
106 high = (ctx->
getC) (ctx);
112 *
result = (high << 8) | low;
121 r = (ctx->
getC) (ctx);
125 r = (ctx->
getC) (ctx);
129 r = (ctx->
getC) (ctx);
135 r = (ctx->
getC) (ctx);
147 c = (ctx->
getC) (ctx);
154 c = (ctx->
getC) (ctx);
161 c = (ctx->
getC) (ctx);
168 c = (ctx->
getC) (ctx);
196 return ((ctx->
seek) (ctx,
pos));
203 return ((ctx->
tell) (ctx));
zend_ffi_ctype_name_buf buf
void gdPutInt(int w, gdIOCtx *ctx)
void Putword(int w, gdIOCtx *ctx)
int gdGetIntLSB(signed int *result, gdIOCtx *ctx)
long gdTell(gdIOCtx *ctx)
int gdGetBuf(void *buf, int size, gdIOCtx *ctx)
int gdSeek(gdIOCtx *ctx, const int pos)
void Putchar(int c, gdIOCtx *ctx)
int gdGetByte(int *result, gdIOCtx *ctx)
int gdGetInt(int *result, gdIOCtx *ctx)
int gdPutBuf(const void *buf, int size, gdIOCtx *ctx)
int gdGetWord(int *result, gdIOCtx *ctx)
void gdPutWord(int w, gdIOCtx *ctx)
void gdPutC(const unsigned char c, gdIOCtx *ctx)
int gdGetWordLSB(signed short int *result, gdIOCtx *ctx)
void gd_error(const char *format,...)
unsigned const char * pos
int(* seek)(struct gdIOCtx *, const int)
void(* putC)(struct gdIOCtx *, int)
long(* tell)(struct gdIOCtx *)
int(* getC)(struct gdIOCtx *)
int(* putBuf)(struct gdIOCtx *, const void *, int)
int(* getBuf)(struct gdIOCtx *, void *, int)