Searched refs:bufSize (Results 1 – 4 of 4) sorted by relevance
299 const size_t bufSize = 64*1024; in dump_trace() local300 in = (uint8_t*)malloc(bufSize); in dump_trace()301 out = (uint8_t*)malloc(bufSize); in dump_trace()305 zs.avail_out = bufSize; in dump_trace()309 result = read(trace_fd, in, bufSize); in dump_trace()323 result = write(output_fd, out, bufSize); in dump_trace()324 if ((size_t)result < bufSize) { in dump_trace()327 zs.avail_out = bufSize; in dump_trace()331 zs.avail_out = bufSize; in dump_trace()340 if (zs.avail_out < bufSize) { in dump_trace()[all …]
131 auto bufSize = st.st_size; in fromFd() local133 res.resize(bufSize + 1, '\0'); in fromFd()139 if (size > bufSize) { in fromFd()141 bufSize *= 2; in fromFd()
593 auto bufSize = st.st_size; in pathFromFd() local595 res.resize(bufSize + 1, '\0'); in pathFromFd()600 if (size > bufSize) { in pathFromFd()602 bufSize *= 2; in pathFromFd()
144 size_t bufSize) { in TryConsumeUnaligned() argument145 if (bufSize < sizeof(T) || *readPtr - bufStart > bufSize - sizeof(T)) { in TryConsumeUnaligned()147 sizeof(T), *readPtr - bufStart, bufSize); in TryConsumeUnaligned()