Lines Matching refs:buf
61 u1 *buf, *b; in dvmDdmSendHeapInfo() local
63 buf = (u1 *)malloc(HPIF_SIZE(1)); in dvmDdmSendHeapInfo()
64 if (buf == NULL) { in dvmDdmSendHeapInfo()
67 b = buf; in dvmDdmSendHeapInfo()
121 assert((intptr_t)b == (intptr_t)buf + (intptr_t)HPIF_SIZE(1)); in dvmDdmSendHeapInfo()
123 dvmDbgDdmSendChunk(CHUNK_TYPE("HPIF"), b - buf, buf); in dvmDdmSendHeapInfo()
178 u1 *buf; member
194 assert(ctx->buf <= ctx->pieceLenField && in flush_hpsg_chunk()
200 dvmDbgDdmSendChunk(ctx->type, ctx->p - ctx->buf, ctx->buf); in flush_hpsg_chunk()
204 ctx->p = ctx->buf; in flush_hpsg_chunk()
218 size_t bytesLeft = ctx->bufLen - (size_t)(ctx->p - ctx->buf); in append_chunk()
222 bytesLeft = ctx->bufLen - (size_t)(ctx->p - ctx->buf); in append_chunk()
396 ctx.buf = (u1 *)malloc(ctx.bufLen); in walkHeap()
397 if (ctx.buf == NULL) { in walkHeap()
412 ctx.p = ctx.buf; in walkHeap()
419 if (ctx.p > ctx.buf) { in walkHeap()
423 free(ctx.buf); in walkHeap()