libopenraw  0.3.7
Public Attributes | List of all members
io_methods Struct Reference

IO methods for the IO subsystem. More...

#include <io.h>

Public Attributes

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

Detailed Description

IO methods for the IO subsystem.

This allow implementing custom IO callback.

Definition at line 51 of file io.h.

Member Data Documentation

◆ open

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

open method

Returns
a descriptor

Definition at line 55 of file io.h.

Referenced by raw_open().


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