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

Method Read

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

Source from the content-addressed store, hash-verified

774 }
775
776 arrow::Result<int64_t>
777 Read(int64_t n_bytes, void *out) override
778 {
779 std::lock_guard<std::mutex> guard(lock_);
780 GError *error = NULL;
781 gsize n_read_bytes = 0;
782 auto success =
783 g_input_stream_read_all(input_stream_, out, n_bytes, &n_read_bytes, NULL, &error);
784 if (success) {
785 return n_read_bytes;
786 } else {
787 return garrow_error_to_status(error,
788 arrow::StatusCode::IOError,
789 "[gio-input-stream][read]");
790 }
791 }
792
793 arrow::Result<int64_t>
794 ReadAt(int64_t position, int64_t n_bytes, void *out) override

Calls 3

garrow_error_to_statusFunction · 0.85
mutable_dataMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected