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

Function garrow_input_stream_read

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

Source from the content-addressed store, hash-verified

155}
156
157static gssize
158garrow_input_stream_read(GInputStream *stream,
159 void *buffer,
160 gsize count,
161 GCancellable *cancellable,
162 GError **error)
163{
164 if (g_cancellable_set_error_if_cancelled(cancellable, error)) {
165 return -1;
166 }
167 auto arrow_input_stream = garrow_input_stream_get_raw(GARROW_INPUT_STREAM(stream));
168 auto n_read_bytes = arrow_input_stream->Read(count, buffer);
169 if (!garrow::check(error, n_read_bytes, "[input-stream][read]")) {
170 return -1;
171 }
172 return n_read_bytes.ValueOrDie();
173}
174
175static gssize
176garrow_input_stream_skip(GInputStream *stream,

Callers

nothing calls this directly

Calls 4

ValueOrDieMethod · 0.80
checkFunction · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected