Lines Matching defs:buf
61 u1 *buf, *b;
63 buf = (u1 *)malloc(HPIF_SIZE(1));
64 if (buf == NULL) {
67 b = buf;
121 assert((intptr_t)b == (intptr_t)buf + (intptr_t)HPIF_SIZE(1));
123 dvmDbgDdmSendChunk(CHUNK_TYPE("HPIF"), b - buf, buf);
178 u1 *buf;
198 assert(ctx->buf <= ctx->pieceLenField &&
204 dvmDbgDdmSendChunk(ctx->type, ctx->p - ctx->buf, ctx->buf);
208 ctx->p = ctx->buf;
222 size_t bytesLeft = ctx->bufLen - (size_t)(ctx->p - ctx->buf);
226 bytesLeft = ctx->bufLen - (size_t)(ctx->p - ctx->buf);
400 ctx.buf = (u1 *)malloc(ctx.bufLen);
401 if (ctx.buf == NULL) {
416 ctx.p = ctx.buf;
423 if (ctx.p > ctx.buf) {
427 free(ctx.buf);