Lines Matching refs:read
52 ssize_t read = 0; in ReadExact() local
54 read = fd->Read((void*)&(buf[total_read]), size - total_read); in ReadExact()
55 if (read <= 0) { in ReadExact()
56 if (read < 0) { in ReadExact()
58 return read; in ReadExact()
62 total_read += read; in ReadExact()
70 ssize_t read; in ReadAll() local
71 while ((read = fd->Read(buff, BUFF_SIZE - 1)) > 0) { in ReadAll()
73 ss << std::string(buff, read); in ReadAll()
75 if (read < 0) { in ReadAll()
77 return read; in ReadAll()