libopenraw
Public Attributes | List of all members
io_methods Struct Reference

#include <io.h>

Public Attributes

IOFileRef(* open )(const char *path, int mode)
 
int(* close )(IOFileRef f)
 
int(* seek )(IOFileRef f, off_t offset, int whence)
 
int(* read )(IOFileRef f, void *buf, size_t count)
 
off_t(* filesize )(IOFileRef f)
 
void *(* mmap )(IOFileRef f, size_t l, off_t offset)
 
int(* munmap )(IOFileRef f, void *addr, size_t l)
 

Detailed Description

IO methods for the IO subsystem.

Definition at line 38 of file io.h.

Member Data Documentation

◆ close

int(* io_methods::close) (IOFileRef f)

close method

Definition at line 44 of file io.h.

◆ open

IOFileRef(* io_methods::open) (const char *path, int mode)

open method

Returns
a descriptor

Definition at line 42 of file io.h.

◆ read

int(* io_methods::read) (IOFileRef f, void *buf, size_t count)

read method

Definition at line 48 of file io.h.

◆ seek

int(* io_methods::seek) (IOFileRef f, off_t offset, int whence)

seek in the file

Definition at line 46 of file io.h.


The documentation for this struct was generated from the following file: