Searched refs:size_to_read (Results 1 – 3 of 3) sorted by relevance
78 size_t size_to_read = std::min(sizeof(buffer), size); in ReadAndDiscardData() local79 auto status = ReceiveData(socket_fd, buffer, size_to_read); in ReadAndDiscardData()82 size -= size_to_read; in ReadAndDiscardData()
217 size_t size_to_read = data_array.size() * sizeof(int); in HandleMessage() local218 if (!message.ReadAll(data_array.data(), size_to_read)) { in HandleMessage()
94 size_t size_to_read = 0; in ReadVectorAll() local96 size_to_read += vector[i].iov_len; in ReadVectorAll()97 if (status.get() < size_to_read) in ReadVectorAll()