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
158 * Get the amount of data currently in the buffer.
210 static int ebReadString(ExpandBuf* pBuf, FILE* in)
217 ic = getc(in);
218 if (feof(in) || ferror(in)) {
235 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected)
242 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in);
244 if (eofExpected && feof(in) && !ferror(in)) {
287 * Get a 2-byte value, in big-endian order, from memory.
298 * Get a 4-byte value, in big-endian order, from memory.
309 * Set a 4-byte value, in big-endian order.
320 * Get the size, in bytes, of one of the "basic types".
515 /* these were added for Android in 1.0.3 */
604 static int filterData(FILE* in, FILE* out, int flags)
617 if (ebReadString(pBuf, in) != 0)
623 fprintf(stderr, "ERROR: HPROF file already in 1.0.2 format.\n");
640 if (ebReadData(pBuf, in, 12, FALSE) != 0)
655 if (ebReadData(pBuf, in, 1, TRUE) != 0)
657 if (feof(in))
661 if (ebReadData(pBuf, in, kRecHdrLen-1, FALSE) != 0)
675 if (ebReadData(pBuf, in, length, FALSE) != 0)
711 FILE* in = NULL;
731 if (!in) {
732 in = fopen_or_default(arg, "rb", stdin);
740 if (in == NULL || out == NULL) {
744 res = filterData(in, out, flags);
767 if (in != stdin)
768 fclose(in);