Home
last modified time | relevance | path

Searched refs:SkipNBytes (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/lib/io/
Dbuffered_inputstream_test.cc256 TEST(BufferedInputStream, SkipNBytes) { in TEST() argument
270 TF_ASSERT_OK(in.SkipNBytes(3)); in TEST()
272 TF_ASSERT_OK(in.SkipNBytes(0)); in TEST()
277 TF_ASSERT_OK(in.SkipNBytes(0)); in TEST()
279 TF_ASSERT_OK(in.SkipNBytes(2)); in TEST()
284 EXPECT_TRUE(errors::IsOutOfRange(in.SkipNBytes(5))); in TEST()
286 EXPECT_TRUE(errors::IsOutOfRange(in.SkipNBytes(5))); in TEST()
342 TF_ASSERT_OK(in.SkipNBytes(3)); in TEST()
344 TF_ASSERT_OK(in.SkipNBytes(0)); in TEST()
349 TF_ASSERT_OK(in.SkipNBytes(0)); in TEST()
[all …]
Dbuffered_inputstream.cc127 Status BufferedInputStream::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() function in tensorflow::io::BufferedInputStream
139 Status s = input_stream_->SkipNBytes(bytes_to_skip - (limit_ - pos_)); in SkipNBytes()
165 return SkipNBytes(position); in Seek()
175 return SkipNBytes(position - Tell()); in Seek()
Drandom_inputstream_test.cc88 TEST(RandomInputStream, SkipNBytes) { in TEST() argument
97 TF_ASSERT_OK(in.SkipNBytes(3)); in TEST()
105 TF_ASSERT_OK(in.SkipNBytes(0)); in TEST()
110 EXPECT_TRUE(errors::IsOutOfRange(in.SkipNBytes(20))); in TEST()
Dinputstream_interface_test.cc57 TF_ASSERT_OK(ss.SkipNBytes(6)); in TEST()
61 EXPECT_TRUE(errors::IsOutOfRange(ss.SkipNBytes(1))); in TEST()
Drecord_reader.cc151 TF_RETURN_IF_ERROR(input_stream_->SkipNBytes(length + kFooterSize)); in GetMetadata()
177 TF_RETURN_IF_ERROR(input_stream_->SkipNBytes(desired_pos)); in PositionInputStream()
179 TF_RETURN_IF_ERROR(input_stream_->SkipNBytes(desired_pos - curr_pos)); in PositionInputStream()
228 s = input_stream_->SkipNBytes(length + kFooterSize); in SkipRecords()
Dinputbuffer_test.cc230 TEST(InputBuffer, SkipNBytes) { in TEST() argument
242 TF_CHECK_OK(in.SkipNBytes(3)); in TEST()
244 TF_CHECK_OK(in.SkipNBytes(0)); in TEST()
249 TF_CHECK_OK(in.SkipNBytes(0)); in TEST()
251 TF_CHECK_OK(in.SkipNBytes(2)); in TEST()
256 EXPECT_TRUE(errors::IsOutOfRange(in.SkipNBytes(5))); in TEST()
258 EXPECT_TRUE(errors::IsOutOfRange(in.SkipNBytes(5))); in TEST()
Dinputstream_interface.cc27 Status InputStreamInterface::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() function in tensorflow::io::InputStreamInterface
Dinputstream_interface.h54 virtual Status SkipNBytes(int64 bytes_to_skip);
Drandom_inputstream.h42 Status SkipNBytes(int64 bytes_to_skip) override;
Dbuffered_inputstream.h46 tensorflow::Status SkipNBytes(int64 bytes_to_skip) override;
Dinputbuffer.h69 Status SkipNBytes(int64 bytes_to_skip);
Drandom_inputstream.cc71 Status RandomAccessInputStream::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() function in tensorflow::io::RandomAccessInputStream
Dzlib_buffers_test.cc288 TF_ASSERT_OK(in.SkipNBytes(data_half_size)); in TestSkipNBytes()
335 EXPECT_TRUE(errors::IsDataLoss(in.SkipNBytes(5))); in TestSoftErrorOnDecompress()
Dinputbuffer.cc155 Status InputBuffer::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() function in tensorflow::io::InputBuffer
/external/tensorflow/tensorflow/core/kernels/
Dfixed_length_record_reader_op.cc70 TF_RETURN_IF_ERROR(buffered_inputstream_->SkipNBytes(header_bytes_)); in OnWorkStartedLocked()
95 Status s = buffered_inputstream_->SkipNBytes(hop_bytes_ - cache_size); in ReadLocked()
/external/tensorflow/tensorflow/core/kernels/data/
Dfixed_length_record_dataset_op.cc193 TF_RETURN_IF_ERROR(input_buffer_->SkipNBytes(dataset()->header_bytes_)); in GetNextInternal()
368 buffered_input_stream_->SkipNBytes(dataset()->header_bytes_)); in GetNextInternal()
426 TF_RETURN_IF_ERROR(buffered_input_stream_->SkipNBytes( in RestoreInternal()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dcsv_dataset_op.cc361 Status s = input_stream_->SkipNBytes( in RestoreInternal()