GArrowWriteable

GArrowWriteable — Output interface

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GArrowWriteable

Description

GArrowWriteable is an interface for output. Output must be writeable.

Functions

garrow_writeable_write ()

gboolean
garrow_writeable_write (GArrowWriteable *writeable,
                        const guint8 *data,
                        gint64 n_bytes,
                        GError **error);

Parameters

writeable

A GArrowWriteable.

 

data

The data to be written.

[array length=n_bytes]

n_bytes

The number of bytes to be written.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.


garrow_writeable_flush ()

gboolean
garrow_writeable_flush (GArrowWriteable *writeable,
                        GError **error);

It ensures writing all data on memory to storage.

Parameters

writeable

A GArrowWriteable.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.

Types and Values

GArrowWriteableInterface

typedef struct _GArrowWriteableInterface GArrowWriteableInterface;