FDK/Tools/Programs/makeotf/source/cb.c
/* [hot callback] Seek to offset and return data */
[hot callback] Seek to offset and return data
[ hot callback ] Seek to offset and return data
static char *cffSeek(void *ctx, long offset, long *count)
	{
	cbCtx h = ctx;
	if (offset >= h->cff.buf.cnt || offset < 0)
		{
		*count = 0;
		return NULL;
		}
	else
		{
		*count = h->cff.buf.cnt - offset;
		return &h->cff.buf.array[offset];
		}
	}
static char * cffSeek ( void * ctx , long offset , long * count ) { cbCtx h = ctx ; if ( offset >= h -> cff . buf . cnt || offset < 0 ) { * count = 0 ; return NULL ; } else { * count = h -> cff . buf . cnt - offset ; return & h -> cff . buf . array [ offset ] ; } }
[hot callback] Seek to offset and return data
[ hot callback ] Seek to offset and return data
/* Seek outside data bounds */