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

Function garrow_writable_write

c_glib/arrow-glib/writable.cpp:52–62  ·  view source on GitHub ↗

* garrow_writable_write: * @writable: A #GArrowWritable. * @data: (array length=n_bytes): The data to be written. * @n_bytes: The number of bytes to be written. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: %TRUE on success, %FALSE if there was an error. */

Source from the content-addressed store, hash-verified

50 * Returns: %TRUE on success, %FALSE if there was an error.
51 */
52gboolean
53garrow_writable_write(GArrowWritable *writable,
54 const guint8 *data,
55 gint64 n_bytes,
56 GError **error)
57{
58 const auto arrow_writable = garrow_writable_get_raw(writable);
59
60 auto status = arrow_writable->Write(data, n_bytes);
61 return garrow_error_check(error, status, "[io][writable][write]");
62}
63
64/**
65 * garrow_writable_flush:

Callers

nothing calls this directly

Calls 2

garrow_error_checkFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected