MCPcopy Create free account
hub / github.com/apache/arrow / garrow_input_stream_skip

Function garrow_input_stream_skip

c_glib/arrow-glib/input-stream.cpp:175–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static gssize
176garrow_input_stream_skip(GInputStream *stream,
177 gsize count,
178 GCancellable *cancellable,
179 GError **error)
180{
181 if (g_cancellable_set_error_if_cancelled(cancellable, error)) {
182 return -1;
183 }
184 auto arrow_input_stream = garrow_input_stream_get_raw(GARROW_INPUT_STREAM(stream));
185 auto status = arrow_input_stream->Advance(count);
186 if (!garrow_error_check(error, status, "[input-stream][skip]")) {
187 return -1;
188 }
189 return count;
190}
191
192static gboolean
193garrow_input_stream_close(GInputStream *stream, GCancellable *cancellable, GError **error)

Callers

nothing calls this directly

Calls 3

garrow_error_checkFunction · 0.85
AdvanceMethod · 0.45

Tested by

no test coverage detected