Searched refs:bytes_available (Results 1 – 13 of 13) sorted by relevance
53 virtual bool BytesAvailable(int* bytes_available) const OVERRIDE { in BytesAvailable()313 const int bytes_available = 128; in TEST_F() local315 const int bytes_to_read = bytes_available - offset; in TEST_F()321 .WillOnce(Return(bytes_available)); in TEST_F()332 SetRange(req_.get(), offset, bytes_available); in TEST_F()346 const int bytes_available = 128; in TEST_F() local348 const int bytes_to_read = bytes_available - offset; in TEST_F()356 .WillOnce(Return(bytes_available)); in TEST_F()376 const int bytes_available = 128; in TEST_F() local382 Return(bytes_available))); in TEST_F()[all …]
35 MOCK_CONST_METHOD1(BytesAvailable, bool(int* bytes_available));
55 int bytes_available = BytesFree(); in Write() local56 if (bytes_available < bytes_to_write) { in Write()57 bytes_to_write = bytes_available; in Write()
59 bool InputStreamImpl::BytesAvailable(int* bytes_available) const { in BytesAvailable()64 *bytes_available = bytes; in BytesAvailable()
133 int bytes_available; in TEST_F() local134 EXPECT_FALSE(input_stream->BytesAvailable(&bytes_available)); in TEST_F()
35 virtual bool BytesAvailable(int* bytes_available) const OVERRIDE;
342 const size_t bytes_available = strlen(kTarget) - chunk_start_index; in TestWithFixedChunkSize() local343 if (this_chunk_size > bytes_available) { in TestWithFixedChunkSize()344 this_chunk_size = bytes_available; in TestWithFixedChunkSize()364 const size_t bytes_available = delta_size() - chunk_start_index; in TestWithFixedChunkSize() local365 if (this_chunk_size > bytes_available) { in TestWithFixedChunkSize()366 this_chunk_size = bytes_available; in TestWithFixedChunkSize()439 const size_t bytes_available = strlen(kTarget) - chunk_start_index; in TestWithEncodedChunkVector() local440 if (this_chunk_size > bytes_available) { in TestWithEncodedChunkVector()441 this_chunk_size = bytes_available; in TestWithEncodedChunkVector()
29 virtual bool BytesAvailable(int* bytes_available) const = 0;
1230 size_t bytes_available = m_stdout_data.size(); in GetAvailableSTDOUT() local1231 if (bytes_available > 0) in GetAvailableSTDOUT()1233 if (bytes_available > buf_size) in GetAvailableSTDOUT()1237 bytes_available = buf_size; in GetAvailableSTDOUT()1241 memcpy(buf, m_stdout_data.data(), bytes_available); in GetAvailableSTDOUT()1245 return bytes_available; in GetAvailableSTDOUT()1408 size_t bytes_available = m_profile_data.front().size(); in GetAsyncProfileData() local1409 if (bytes_available > 0) in GetAsyncProfileData()1411 if (bytes_available > buf_size) in GetAsyncProfileData()1415 bytes_available = buf_size; in GetAsyncProfileData()[all …]
4415 size_t bytes_available = one_profile_data.size(); in GetAsyncProfileData() local4416 if (bytes_available > 0) in GetAsyncProfileData()4421 if (bytes_available > buf_size) in GetAsyncProfileData()4425 bytes_available = buf_size; in GetAsyncProfileData()4429 memcpy(buf, one_profile_data.c_str(), bytes_available); in GetAsyncProfileData()4433 return bytes_available; in GetAsyncProfileData()4445 size_t bytes_available = m_stdout_data.size(); in GetSTDOUT() local4446 if (bytes_available > 0) in GetSTDOUT()4451 if (bytes_available > buf_size) in GetSTDOUT()4455 bytes_available = buf_size; in GetSTDOUT()[all …]
251 const uint32_t bytes_available = pos->first - last_offset; in ReserveBlock() local252 const uint32_t num_chunks = CalculateChunksNeededForSize (bytes_available); in ReserveBlock()
306 const size_t bytes_available = m_bytes.size(); in CheckForPacket() local307 if (bytes_available >= 8) in CheckForPacket()309 packet.SetData (&m_bytes[0], bytes_available, m_byte_order); in CheckForPacket()362 if (length <= bytes_available) in CheckForPacket()
172 offset_t bytes_available = data.GetByteSize() - offset; in DataExtractor() local173 if (length > bytes_available) in DataExtractor()174 length = bytes_available; in DataExtractor()