GArrowIOReadable

GArrowIOReadable — Input interface

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GArrowIOReadable

Prerequisites

GArrowIOReadable requires GObject.

Known Implementations

GArrowIOReadable is implemented by GArrowIOMemoryMappedFile.

Description

GArrowIOReadable is an interface for input. Input must be readable.

Functions

garrow_io_readable_read ()

gboolean
garrow_io_readable_read (GArrowIOReadable *readable,
                         gint64 n_bytes,
                         gint64 *n_read_bytes,
                         guint8 *buffer,
                         GError **error);

Parameters

readable

A GArrowIOReadable.

 

n_bytes

The number of bytes to be read.

 

n_read_bytes

The read number of bytes.

[out]

buffer

The buffer to be read data.

[array length=n_bytes]

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.

Types and Values

GArrowIOReadable

typedef struct _GArrowIOReadable GArrowIOReadable;

GArrowIOReadableInterface

typedef struct _GArrowIOReadableInterface GArrowIOReadableInterface;