* 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. */
| 50 | * Returns: %TRUE on success, %FALSE if there was an error. |
| 51 | */ |
| 52 | gboolean |
| 53 | garrow_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: |
nothing calls this directly
no test coverage detected