Home
last modified time | relevance | path

Searched refs:can_read_bytes (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/lib/io/snappy/
Dsnappy_inputstream.cc133 size_t can_read_bytes = std::min(bytes_to_read, avail_out_); in ReadBytesFromCache() local
134 if (can_read_bytes) { in ReadBytesFromCache()
135 memcpy(result, next_out_, can_read_bytes); in ReadBytesFromCache()
136 next_out_ += can_read_bytes; in ReadBytesFromCache()
137 avail_out_ -= can_read_bytes; in ReadBytesFromCache()
139 bytes_read_ += can_read_bytes; in ReadBytesFromCache()
140 return can_read_bytes; in ReadBytesFromCache()
Dsnappy_inputbuffer.cc72 size_t can_read_bytes = std::min(bytes_to_read, avail_out_); in ReadBytesFromCache() local
73 if (can_read_bytes > 0) { in ReadBytesFromCache()
74 memcpy(result_ptr, next_out_, can_read_bytes); in ReadBytesFromCache()
75 next_out_ += can_read_bytes; in ReadBytesFromCache()
76 avail_out_ -= can_read_bytes; in ReadBytesFromCache()
78 bytes_read_ += can_read_bytes; in ReadBytesFromCache()
79 return can_read_bytes; in ReadBytesFromCache()
/external/tensorflow/tensorflow/core/lib/io/
Dzlib_inputstream.cc180 size_t can_read_bytes = std::min(bytes_to_read, unread_bytes); in ReadBytesFromCache() local
181 if (can_read_bytes > 0) { in ReadBytesFromCache()
182 result->append(next_unread_byte_, can_read_bytes); in ReadBytesFromCache()
183 next_unread_byte_ += can_read_bytes; in ReadBytesFromCache()
185 bytes_read_ += can_read_bytes; in ReadBytesFromCache()
186 return can_read_bytes; in ReadBytesFromCache()