GArrowIOWriteable

GArrowIOWriteable — Output interface

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GArrowIOWriteable

Prerequisites

GArrowIOWriteable requires GObject.

Known Implementations

GArrowIOWriteable is implemented by GArrowIOFileOutputStream and GArrowIOMemoryMappedFile.

Description

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

Functions

garrow_io_writeable_write ()

gboolean
garrow_io_writeable_write (GArrowIOWriteable *writeable,
                           const guint8 *data,
                           gint64 n_bytes,
                           GError **error);

Parameters

writeable

A GArrowIOWriteable.

 

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_io_writeable_flush ()

gboolean
garrow_io_writeable_flush (GArrowIOWriteable *writeable,
                           GError **error);

It ensures writing all data on memory to storage.

Parameters

writeable

A GArrowIOWriteable.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.

Types and Values

GArrowIOWriteable

typedef struct _GArrowIOWriteable GArrowIOWriteable;

GArrowIOWriteableInterface

typedef struct _GArrowIOWriteableInterface GArrowIOWriteableInterface;