We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2801245 commit 94d8ac1Copy full SHA for 94d8ac1
1 file changed
include/osmium/io/detail/pbf_input_format.hpp
@@ -124,6 +124,11 @@ namespace osmium {
124
if (!osmium::io::detail::read_exactly(m_fd, buffer.data(), static_cast<unsigned int>(buffer.size()))) {
125
return 0; // EOF
126
}
127
+
128
+ if (m_offset_ptr) {
129
+ *m_offset_ptr += buffer.size();
130
+ }
131
132
return check_size(get_size_in_network_byte_order(buffer.data()));
133
134
@@ -210,6 +215,10 @@ namespace osmium {
210
215
if (!osmium::io::detail::read_exactly(m_fd, &*buffer.begin(), static_cast<unsigned int>(size))) {
211
216
throw osmium::pbf_error{"unexpected EOF"};
212
217
218
219
220
221
213
222
} else {
214
223
ensure_available_in_input_queue(size);
224
buffer.append(m_input_buffer, 0, size);
0 commit comments