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
144 * Get the amount of data currently in the buffer.
196 static int ebReadString(ExpandBuf* pBuf, FILE* in)
203 ic = getc(in);
204 if (feof(in) || ferror(in)) {
221 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected)
228 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in);
230 if (eofExpected && feof(in) && !ferror(in)) {
273 * Get a 2-byte value, in big-endian order, from memory.
284 * Get a 4-byte value, in big-endian order, from memory.
295 * Set a 4-byte value, in big-endian order.
306 * Get the size, in bytes, of one of the "basic types".
491 /* these were added for Android in 1.0.3 */
573 static int filterData(FILE* in, FILE* out)
586 if (ebReadString(pBuf, in) != 0)
592 fprintf(stderr, "ERROR: HPROF file already in 1.0.2 format.\n");
609 if (ebReadData(pBuf, in, 12, FALSE) != 0)
624 if (ebReadData(pBuf, in, 1, TRUE) != 0)
626 if (feof(in))
630 if (ebReadData(pBuf, in, kRecHdrLen-1, FALSE) != 0)
644 if (ebReadData(pBuf, in, length, FALSE) != 0)
676 FILE* in = stdin;
699 in = fopen(argv[1], "rb");
700 if (in == NULL) {
711 if (in != stdin)
712 fclose(in);
717 cc = filterData(in, out);
719 if (in != stdin)
720 fclose(in);