• Home
  • Raw
  • Download

Lines Matching refs:buf

275 static uint16_t get2BE(const unsigned char* buf)  in get2BE()  argument
279 val = (buf[0] << 8) | buf[1]; in get2BE()
286 static uint32_t get4BE(const unsigned char* buf) in get4BE() argument
290 val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; in get4BE()
297 static void set4BE(unsigned char* buf, uint32_t val) in set4BE() argument
299 buf[0] = val >> 24; in set4BE()
300 buf[1] = val >> 16; in set4BE()
301 buf[2] = val >> 8; in set4BE()
302 buf[3] = val; in set4BE()
324 const unsigned char* buf = origBuf; in computeClassDumpLen() local
329 buf += blockLen; in computeClassDumpLen()
335 count = get2BE(buf); in computeClassDumpLen()
336 buf += 2; in computeClassDumpLen()
343 basicType = buf[2]; in computeClassDumpLen()
350 buf += 2 + 1 + basicLen; in computeClassDumpLen()
356 count = get2BE(buf); in computeClassDumpLen()
357 buf += 2; in computeClassDumpLen()
364 basicType = buf[kIdentSize]; in computeClassDumpLen()
371 buf += kIdentSize + 1 + basicLen; in computeClassDumpLen()
377 count = get2BE(buf); in computeClassDumpLen()
378 buf += 2; in computeClassDumpLen()
382 buf += kIdentSize + 1; in computeClassDumpLen()
388 DBUG("Total class dump len: %d\n", buf - origBuf); in computeClassDumpLen()
389 return buf - origBuf; in computeClassDumpLen()
430 unsigned char* buf = origBuf; in processHeapDump() local
437 if (ebAddData(pOutBuf, buf, kRecHdrLen) != 0) in processHeapDump()
440 buf += kRecHdrLen; /* skip past record header */ in processHeapDump()
444 unsigned char subType = buf[0]; in processHeapDump()
479 subLen = computeClassDumpLen(buf+1, len-1); in processHeapDump()
482 subLen = computeInstanceDumpLen(buf+1, len-1); in processHeapDump()
485 subLen = computeObjectArrayDumpLen(buf+1, len-1); in processHeapDump()
488 subLen = computePrimitiveArrayDumpLen(buf+1, len-1); in processHeapDump()
498 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
502 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
506 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
510 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
514 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
519 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
521 ebAddData(pOutBuf, buf, 1 + kIdentSize); in processHeapDump()
525 buf[0] = HPROF_ROOT_UNKNOWN; in processHeapDump()
529 buf[0] = HPROF_PRIMITIVE_ARRAY_DUMP; in processHeapDump()
530 buf[5] = buf[6] = buf[7] = buf[8] = 0; /* set array len to 0 */ in processHeapDump()
537 subType, buf - origBuf); in processHeapDump()
544 ebAddData(pOutBuf, buf, 1 + subLen); in processHeapDump()
551 buf += 1 + subLen; in processHeapDump()
633 unsigned char* buf = ebGetBuffer(pBuf); in filterData() local
637 type = buf[0]; in filterData()
638 timestamp = get4BE(buf + 1); in filterData()
639 length = get4BE(buf + 5); in filterData()
640 buf = NULL; /* ptr invalid after next read op */ in filterData()