Home
last modified time | relevance | path

Searched refs:bytes_to_skip (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/lib/io/
Drandom_inputstream.cc56 Status RandomAccessInputStream::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() argument
57 if (bytes_to_skip < 0) { in SkipNBytes()
63 if (bytes_to_skip > 0) { in SkipNBytes()
65 Status s = file_->Read(pos_ + bytes_to_skip - 1, 1, &data, scratch.get()); in SkipNBytes()
67 pos_ += bytes_to_skip; in SkipNBytes()
72 while (bytes_to_skip > 0) { in SkipNBytes()
73 int64 bytes_to_read = std::min<int64>(kMaxSkipSize, bytes_to_skip); in SkipNBytes()
84 bytes_to_skip -= bytes_to_read; in SkipNBytes()
Dinputstream_interface.cc27 Status InputStreamInterface::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() argument
28 if (bytes_to_skip < 0) { in SkipNBytes()
33 while (bytes_to_skip > 0) { in SkipNBytes()
34 int64 bytes_to_read = std::min<int64>(kMaxSkipSize, bytes_to_skip); in SkipNBytes()
36 bytes_to_skip -= bytes_to_read; in SkipNBytes()
Dbuffered_inputstream.cc126 Status BufferedInputStream::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() argument
127 if (bytes_to_skip < 0) { in SkipNBytes()
129 bytes_to_skip); in SkipNBytes()
131 if (pos_ + bytes_to_skip < limit_) { in SkipNBytes()
133 pos_ += bytes_to_skip; in SkipNBytes()
138 Status s = input_stream_->SkipNBytes(bytes_to_skip - (limit_ - pos_)); in SkipNBytes()
Dinputbuffer.cc150 Status InputBuffer::SkipNBytes(int64 bytes_to_skip) { in SkipNBytes() argument
151 if (bytes_to_skip < 0) { in SkipNBytes()
153 bytes_to_skip); in SkipNBytes()
157 while (bytes_skipped < bytes_to_skip) { in SkipNBytes()
166 std::min<int64>(limit_ - pos_, bytes_to_skip - bytes_skipped); in SkipNBytes()
170 if (errors::IsOutOfRange(s) && bytes_skipped == bytes_to_skip) { in SkipNBytes()
Dinputstream_interface.h41 virtual Status SkipNBytes(int64 bytes_to_skip);
Drandom_inputstream.h37 Status SkipNBytes(int64 bytes_to_skip) override;
Dbuffered_inputstream.h46 Status SkipNBytes(int64 bytes_to_skip) override;
Dinputbuffer.h67 Status SkipNBytes(int64 bytes_to_skip);
/external/autotest/client/bin/result_tools/
Dshrink_file_throttler.py91 bytes_to_skip = original_size_bytes + seek_pos - old_file.tell()
93 seek_pos += len(str(bytes_to_skip)) - 2
94 bytes_to_skip = original_size_bytes + seek_pos - old_file.tell()
95 new_file.write(TRIMMED_FILE_INJECT_TEMPLATE % bytes_to_skip)
/external/autotest/client/bin/
Dsite_sysinfo.py212 bytes_to_skip = 0
217 bytes_to_skip = prev_stat.st_size
218 if new_stat.st_size == bytes_to_skip:
222 bytes_to_skip = 0
225 if bytes_to_skip > 0:
226 in_log.seek(bytes_to_skip)
Dbase_sysinfo.py426 bytes_to_skip = 0
430 bytes_to_skip = self._messages_size
432 in_messages.seek(bytes_to_skip)