Re: libefs and file types



Miguel de Icaza wrote:

> > 1.  I'm not convinced we should use libefs.  If we do, then I would
> >     probably put it in the beginning of the file.  Microsoft
> >     effectively just writes it out at the beginning of the file;
> >     the client calls IPersistStream::GetClassID(), writes it out to
> >     the stream, and then writes the PersistStream out using
> >     IPersistStream::Save().
>
> Good point.  Because currently, we would have no way of
> differentiating a .efs file containing different "toplevel" files.

For the toplevel we can use a special function to write the "file type"
somewhere into the efs-header. Do to this we need a maximum length for the
goad-id, or we can simply store an arbitrary ID.




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