GArrowRandomAccessFile

GArrowRandomAccessFile — File input interface

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GArrowRandomAccessFile

Description

GArrowRandomAccessFile is an interface for file input.

Functions

garrow_random_access_file_get_size ()

guint64
garrow_random_access_file_get_size (GArrowRandomAccessFile *file,
                                    GError **error);

Parameters

file

A GArrowRandomAccessFile.

 

error

Return location for a GError or NULL.

[nullable]

Returns

The size of the file.


garrow_random_access_file_get_support_zero_copy ()

gboolean
garrow_random_access_file_get_support_zero_copy
                               (GArrowRandomAccessFile *file);

Parameters

Returns

Whether zero copy read is supported or not.


garrow_random_access_file_read_at ()

gboolean
garrow_random_access_file_read_at (GArrowRandomAccessFile *file,
                                   gint64 position,
                                   gint64 n_bytes,
                                   gint64 *n_read_bytes,
                                   guint8 *buffer,
                                   GError **error);

Parameters

file

A GArrowRandomAccessFile.

 

position

The read start position.

 

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

GArrowRandomAccessFileInterface

typedef struct _GArrowRandomAccessFileInterface GArrowRandomAccessFileInterface;