FDK/Tools/Programs/makeotf/source/cb.c
/* [fcdb callback] Get record from database file at given offset and length. */
[fcdb callback] Get record from database file at given offset and length.
[ fcdb callback ] Get record from database file at given offset and length .
static void fcdbGetBuf(void *ctx, 
					   unsigned fileid, long offset, long length, char *buf)
	{
	cbCtx h = ctx;
	File *file = &h->fcdb.files.array[fileid];
	fileSeek(file, offset, SEEK_SET);
	if (fileReadN(file, length, buf) != length)
		fileError(file);
	}
static void fcdbGetBuf ( void * ctx , unsigned fileid , long offset , long length , char * buf ) { cbCtx h = ctx ; File * file = & h -> fcdb . files . array [ fileid ] ; fileSeek ( file , offset , SEEK_SET ) ; if ( fileReadN ( file , length , buf ) != length ) fileError ( file ) ; }
[fcdb callback] Get record from database file at given offset and length.
[ fcdb callback ] Get record from database file at given offset and length .