GArrowIOFile

GArrowIOFile — File interface

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GArrowIOFile

Prerequisites

GArrowIOFile requires GObject.

Known Implementations

GArrowIOFile is implemented by GArrowIOFileOutputStream and GArrowIOMemoryMappedFile.

Description

GArrowIOFile is an interface for file.

Functions

garrow_io_file_close ()

gboolean
garrow_io_file_close (GArrowIOFile *file,
                      GError **error);

Parameters

file

A GArrowIOFile.

 

error

Return location for a GError or NULL.

[nullable]

Returns

TRUE on success, FALSE if there was an error.


garrow_io_file_tell ()

gint64
garrow_io_file_tell (GArrowIOFile *file,
                     GError **error);

Parameters

file

A GArrowIOFile.

 

error

Return location for a GError or NULL.

[nullable]

Returns

The current offset on success, -1 if there was an error.


garrow_io_file_get_mode ()

GArrowIOFileMode
garrow_io_file_get_mode (GArrowIOFile *file);

Parameters

file

A GArrowIOFile.

 

Returns

The mode of the file.

Types and Values

GArrowIOFile

typedef struct _GArrowIOFile GArrowIOFile;

GArrowIOFileInterface

typedef struct _GArrowIOFileInterface GArrowIOFileInterface;