freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] a few barriers before true 64-bit or LFS support


From: Werner LEMBERG
Subject: Re: [ft-devel] a few barriers before true 64-bit or LFS support
Date: Tue, 26 Nov 2013 07:33:27 +0100 (CET)

> 1) FreeType stream I/O functions should be (incompatibly) changed
> 
> The public API file, ftsystem.h has a following API for
> the stream object in FreeType;
> 
>   typedef struct  FT_StreamRec_
>   {
>     unsigned char*       base;
>     unsigned long        size;
>     unsigned long        pos;
> 
>     FT_StreamDesc        descriptor;
>     FT_StreamDesc        pathname;
>     FT_Stream_IoFunc     read;
>     FT_Stream_CloseFunc  close;
> 
>     FT_Memory            memory;
>     unsigned char*       cursor;
>     unsigned char*       limit;
> 
>   } FT_StreamRec;

Would it make sense to introduce a specific LFS-aware structure, say,
FT_StreamoRec (in analogy to the `fseeko' function name), ...

> Also read/seek the stream object of FreeType has 32-bit
> limitation.
> 
>   typedef unsigned long
>   (*FT_Stream_IoFunc)( FT_Stream       stream,
>                        unsigned long   offset,
>                        unsigned char*  buffer,
>                        unsigned long   count );

... together with a (*FT_Streamo_IoFunc) function?

Internally, a transition to `FT_Offset' (a.k.a. `size_t') has been
mostly done already, AFAIK.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]