Lines Matching refs:ctx
34 void Putword (int w, gdIOCtx * ctx) in Putword() argument
40 (ctx->putBuf) (ctx, (char *) buf, 2); in Putword()
43 void Putchar (int c, gdIOCtx * ctx) in Putchar() argument
45 (ctx->putC) (ctx, c & 0xff); in Putchar()
48 void gdPutC (const unsigned char c, gdIOCtx * ctx) in gdPutC() argument
50 (ctx->putC) (ctx, c); in gdPutC()
53 void gdPutWord (int w, gdIOCtx * ctx) in gdPutWord() argument
56 (ctx->putC) (ctx, (unsigned char) (w >> 8)); in gdPutWord()
57 (ctx->putC) (ctx, (unsigned char) (w & 0xFF)); in gdPutWord()
61 void gdPutInt (int w, gdIOCtx * ctx) in gdPutInt() argument
64 (ctx->putC) (ctx, (unsigned char) (w >> 24)); in gdPutInt()
65 (ctx->putC) (ctx, (unsigned char) ((w >> 16) & 0xFF)); in gdPutInt()
66 (ctx->putC) (ctx, (unsigned char) ((w >> 8) & 0xFF)); in gdPutInt()
67 (ctx->putC) (ctx, (unsigned char) (w & 0xFF)); in gdPutInt()
71 int gdGetC (gdIOCtx * ctx) in gdGetC() argument
73 return ((ctx->getC) (ctx)); in gdGetC()
76 int gdGetByte (int *result, gdIOCtx * ctx) in gdGetByte() argument
79 r = (ctx->getC) (ctx); in gdGetByte()
85 int gdGetWord (int *result, gdIOCtx * ctx) in gdGetWord() argument
88 r = (ctx->getC) (ctx); in gdGetWord()
91 r = (ctx->getC) (ctx); in gdGetWord()
98 int gdGetInt (int *result, gdIOCtx * ctx) in gdGetInt() argument
101 r = (ctx->getC) (ctx); in gdGetInt()
105 r = (ctx->getC) (ctx); in gdGetInt()
109 r = (ctx->getC) (ctx); in gdGetInt()
115 r = (ctx->getC) (ctx); in gdGetInt()
122 int gdPutBuf (const void *buf, int size, gdIOCtx * ctx) in gdPutBuf() argument
125 return (ctx->putBuf) (ctx, buf, size); in gdPutBuf()
129 int gdGetBuf (void *buf, int size, gdIOCtx * ctx) in gdGetBuf() argument
131 return (ctx->getBuf) (ctx, buf, size); in gdGetBuf()
134 int gdSeek (gdIOCtx * ctx, const int pos) in gdSeek() argument
137 return ((ctx->seek) (ctx, pos)); in gdSeek()
141 long gdTell (gdIOCtx * ctx) in gdTell() argument
144 return ((ctx->tell) (ctx)); in gdTell()