libgpac
Documentation of the core library of GPAC
GF_FileIO Struct Reference

Data Fields

u32 _reserved_null
 
void * __this
 
GF_FileIO *(* open )(GF_FileIO *fileio_ref, const char *url, const char *mode, GF_Err *out_error)
 
GF_Err(* seek )(GF_FileIO *fileio, u64 offset, s32 whence)
 
u32(* read )(GF_FileIO *fileio, u8 *buffer, u32 bytes)
 
u32(* write )(GF_FileIO *fileio, u8 *buffer, u32 bytes)
 
s64(* tell )(GF_FileIO *fileio)
 
Bool(* eof )(GF_FileIO *fileio)
 
int(* printf )(GF_FileIO *gfio, const char *format, va_list args)
 
char *(* gets )(GF_FileIO *gfio, char *ptr, u32 size)
 
char * url
 
char * res_url
 
void * udta
 
u64 bytes_done
 
u64 file_size_plus_one
 
Bool main_th
 
GF_FileIOCacheState cache_state
 
u32 bytes_per_sec
 
u32 write_state
 
u32 printf_alloc
 
u8printf_buf
 

Detailed Description

File IO wrapper object

Field Documentation

◆ _reserved_null

u32 GF_FileIO::_reserved_null

◆ __this

void* GF_FileIO::__this

◆ open

GF_FileIO*(* GF_FileIO::open) (GF_FileIO *fileio_ref, const char *url, const char *mode, GF_Err *out_error)

◆ seek

GF_Err(* GF_FileIO::seek) (GF_FileIO *fileio, u64 offset, s32 whence)

◆ read

u32(* GF_FileIO::read) (GF_FileIO *fileio, u8 *buffer, u32 bytes)

◆ write

u32(* GF_FileIO::write) (GF_FileIO *fileio, u8 *buffer, u32 bytes)

◆ tell

s64(* GF_FileIO::tell) (GF_FileIO *fileio)

◆ eof

Bool(* GF_FileIO::eof) (GF_FileIO *fileio)

◆ printf

int(* GF_FileIO::printf) (GF_FileIO *gfio, const char *format, va_list args)

◆ gets

char*(* GF_FileIO::gets) (GF_FileIO *gfio, char *ptr, u32 size)

◆ url

char* GF_FileIO::url

◆ res_url

char* GF_FileIO::res_url

◆ udta

void* GF_FileIO::udta

◆ bytes_done

u64 GF_FileIO::bytes_done

◆ file_size_plus_one

u64 GF_FileIO::file_size_plus_one

◆ main_th

Bool GF_FileIO::main_th

◆ cache_state

GF_FileIOCacheState GF_FileIO::cache_state

◆ bytes_per_sec

u32 GF_FileIO::bytes_per_sec

◆ write_state

u32 GF_FileIO::write_state

◆ printf_alloc

u32 GF_FileIO::printf_alloc

◆ printf_buf

u8* GF_FileIO::printf_buf