record AL_PACKFILE_VTABLE

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type AL_PACKFILE_VTABLE = record

Description

Packfile vtable structure, for custom packfiles.

This is the vtable which must be provided for custom packfiles, which then can read from and write to wherever you like (eg. files in memory). You should provide all the entries of the vtable, even if they are empty stubs doing nothing, to avoid Allegro (or you) calling a NIL method at some point.

See also
al_pack_fopen_vtable
Creates a new packfile structure that uses the functions specified in the vtable instead of the standard functions.

Overview

Fields

pf_fclose: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
pf_getc: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
pf_ungetc: FUNCTION(c: AL_INT; userdata: AL_VOIDptr): AL_INT; CDECL;
pf_fread: FUNCTION(p: AL_VOIDptr; n: AL_LONG; userdata: AL_VOIDptr): AL_LONG; CDECL;
pf_putc: FUNCTION(c: AL_INT; userdata: AL_VOIDptr): AL_INT; CDECL;
pf_fwrite: FUNCTION(CONST p: AL_VOIDptr; n: AL_LONG; userdata: AL_VOIDptr): AL_LONG; CDECL;
pf_fseek: FUNCTION(userdata: AL_VOIDptr; offset: AL_INT): AL_INT; CDECL;
pf_feof: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
pf_ferror: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;

Description

Fields

pf_fclose: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
 
pf_getc: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
 
pf_ungetc: FUNCTION(c: AL_INT; userdata: AL_VOIDptr): AL_INT; CDECL;
 
pf_fread: FUNCTION(p: AL_VOIDptr; n: AL_LONG; userdata: AL_VOIDptr): AL_LONG; CDECL;
 
pf_putc: FUNCTION(c: AL_INT; userdata: AL_VOIDptr): AL_INT; CDECL;
 
pf_fwrite: FUNCTION(CONST p: AL_VOIDptr; n: AL_LONG; userdata: AL_VOIDptr): AL_LONG; CDECL;
 
pf_fseek: FUNCTION(userdata: AL_VOIDptr; offset: AL_INT): AL_INT; CDECL;
 
pf_feof: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
 
pf_ferror: FUNCTION(userdata: AL_VOIDptr): AL_INT; CDECL;
 

Generated by PasDoc 0.13.0 on 2016-07-20 12:01:35