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

Function garrow_writable_file_write_at

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

* garrow_writable_file_write_at: * @writable_file: A #GArrowWritableFile. * @position: The write start position. * @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_file_write_at(GArrowWritableFile *writable_file,
54 gint64 position,
55 const guint8 *data,
56 gint64 n_bytes,
57 GError **error)
58{
59 const auto arrow_writable_file = garrow_writable_file_get_raw(writable_file);
60
61 auto status = arrow_writable_file->WriteAt(position, data, n_bytes);
62 return garrow_error_check(error, status, "[io][writable-file][write-at]");
63}
64
65G_END_DECLS
66

Callers

nothing calls this directly

Calls 2

garrow_error_checkFunction · 0.85
WriteAtMethod · 0.45

Tested by

no test coverage detected