39static int fileGetbuf (
gdIOCtx *,
void *,
int);
40static int filePutbuf (
gdIOCtx *,
const void *,
int);
41static void filePutchar (
gdIOCtx *,
int);
42static int fileGetchar (
gdIOCtx * ctx);
44static int fileSeek (
struct gdIOCtx *,
const int);
45static long fileTell (
struct gdIOCtx *);
46static void gdFreeFileCtx (
gdIOCtx * ctx);
71static void gdFreeFileCtx (
gdIOCtx * ctx)
94static void filePutchar (
gdIOCtx * ctx,
int a)
105static int fileGetchar (
gdIOCtx * ctx)
110 return getc (fctx->
f);
114static int fileSeek (
struct gdIOCtx *ctx,
const int pos)
122static long fileTell (
struct gdIOCtx *ctx)
fseek($stream, int $offset, int $whence=SEEK_SET)
fwrite($stream, string $data, ?int $length=null)
fread($stream, int $length)
zend_ffi_ctype_name_buf buf
gdIOCtx * gdNewFileCtx(FILE *f)
gdIOCtx * newFileCtx(FILE *f)
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)
void(* gd_free)(struct gdIOCtx *)
int(* getBuf)(struct gdIOCtx *, void *, int)