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 gdGetWordLSB(signed short int *result, gdIOCtx *ctx) in gdGetWordLSB() argument
101 low = (ctx->getC) (ctx); in gdGetWordLSB()
106 high = (ctx->getC) (ctx); in gdGetWordLSB()
118 int gdGetInt (int *result, gdIOCtx * ctx) in gdGetInt() argument
121 r = (ctx->getC) (ctx); in gdGetInt()
125 r = (ctx->getC) (ctx); in gdGetInt()
129 r = (ctx->getC) (ctx); in gdGetInt()
135 r = (ctx->getC) (ctx); in gdGetInt()
142 int gdGetIntLSB(signed int *result, gdIOCtx *ctx) in gdGetIntLSB() argument
147 c = (ctx->getC) (ctx); in gdGetIntLSB()
154 c = (ctx->getC) (ctx); in gdGetIntLSB()
161 c = (ctx->getC) (ctx); in gdGetIntLSB()
168 c = (ctx->getC) (ctx); in gdGetIntLSB()
181 int gdPutBuf (const void *buf, int size, gdIOCtx * ctx) in gdPutBuf() argument
184 return (ctx->putBuf) (ctx, buf, size); in gdPutBuf()
188 int gdGetBuf (void *buf, int size, gdIOCtx * ctx) in gdGetBuf() argument
190 return (ctx->getBuf) (ctx, buf, size); in gdGetBuf()
193 int gdSeek (gdIOCtx * ctx, const int pos) in gdSeek() argument
196 return ((ctx->seek) (ctx, pos)); in gdSeek()
200 long gdTell (gdIOCtx * ctx) in gdTell() argument
203 return ((ctx->tell) (ctx)); in gdTell()