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

Function gaflight_server_auth_reader_read

c_glib/arrow-flight-glib/server.cpp:638–648  ·  view source on GitHub ↗

* gaflight_server_auth_reader_read: * @reader: A #GAFlightServerAuthReader. * @error: (nullable): Return location for a #GError or %NULL. * * Reads a message from the client. * * Returns: (nullable) (transfer full): Read data as #GBytes on * success, %NULL on error. * * Since: 12.0.0 */

Source from the content-addressed store, hash-verified

636 * Since: 12.0.0
637 */
638GBytes *
639gaflight_server_auth_reader_read(GAFlightServerAuthReader *reader, GError **error)
640{
641 auto flight_reader = gaflight_server_auth_reader_get_raw(reader);
642 std::string flight_message;
643 auto status = flight_reader->Read(&flight_message);
644 if (!garrow::check(error, status, "[flight-server-auth-reader][read]")) {
645 return nullptr;
646 }
647 return g_bytes_new(flight_message.data(), flight_message.size());
648}
649
650struct GAFlightServerAuthHandlerPrivate
651{

Callers

nothing calls this directly

Calls 5

checkFunction · 0.50
ReadMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected