Searched refs:IncrementOffset (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/core/lib/wav/ |
D | wav_io_test.cc | 211 TEST(WavIO, IncrementOffset) { in TEST() argument 213 TF_EXPECT_OK(IncrementOffset(0, 10, 20, &new_offset)); in TEST() 217 TF_EXPECT_OK(IncrementOffset(10, 4, 20, &new_offset)); in TEST() 221 TF_EXPECT_OK(IncrementOffset(99, 1, 100, &new_offset)); in TEST() 225 EXPECT_FALSE(IncrementOffset(-1, 1, 100, &new_offset).ok()); in TEST() 228 EXPECT_FALSE(IncrementOffset(0, -1, 100, &new_offset).ok()); in TEST() 231 EXPECT_FALSE(IncrementOffset(std::numeric_limits<int>::max(), 1, in TEST() 236 EXPECT_FALSE(IncrementOffset(101, 1, 100, &new_offset).ok()); in TEST()
|
D | wav_io.h | 64 Status IncrementOffset(int old_offset, size_t increment, size_t max_size, 74 IncrementOffset(*offset, sizeof(T), data.size(), &new_offset)); in ReadValue()
|
D | wav_io.cc | 88 Status IncrementOffset(int old_offset, size_t increment, size_t max_size, in IncrementOffset() function 115 IncrementOffset(*offset, expected_text.size(), data.size(), &new_offset)); in ExpectText() 129 IncrementOffset(*offset, expected_length, data.size(), &new_offset)); in ReadString() 296 TF_RETURN_IF_ERROR(IncrementOffset(offset, sizeof(int16) * data_count, in DecodeLin16WaveAsFloatVector()
|