Home | History | Annotate | Download | only in hprof-conv

Lines Matching defs:in

5  * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
153 * Get the amount of data currently in the buffer.
205 static int ebReadString(ExpandBuf* pBuf, FILE* in)
212 ic = getc(in);
213 if (feof(in) || ferror(in)) {
230 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected)
237 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in);
239 if (eofExpected && feof(in) && !ferror(in)) {
282 * Get a 2-byte value, in big-endian order, from memory.
293 * Get a 4-byte value, in big-endian order, from memory.
304 * Set a 4-byte value, in big-endian order.
315 * Get the size, in bytes, of one of the "basic types".
510 /* these were added for Android in 1.0.3 */
599 static int filterData(FILE* in, FILE* out, int flags)
612 if (ebReadString(pBuf, in) != 0)
618 fprintf(stderr, "ERROR: HPROF file already in 1.0.2 format.\n");
635 if (ebReadData(pBuf, in, 12, FALSE) != 0)
650 if (ebReadData(pBuf, in, 1, TRUE) != 0)
652 if (feof(in))
656 if (ebReadData(pBuf, in, kRecHdrLen-1, FALSE) != 0)
670 if (ebReadData(pBuf, in, length, FALSE) != 0)
706 FILE* in = NULL;
726 if (!in) {
727 in = fopen_or_default(arg, "rb", stdin);
735 if (in == NULL || out == NULL) {
739 res = filterData(in, out, flags);
762 if (in != stdin)
763 fclose(in);