delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/08/04:08:41

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: File Routines
Date: 2 Jun 1997 06:57:19 GMT
Organization: The National Capital FreeNet
Lines: 26
Message-ID: <5mtqsf$c67@freenet-news.carleton.ca>
References: <33924A1F DOT 140F AT worldnet DOT att DOT net>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Patrick J. Morris" (danalas AT worldnet DOT att DOT net) writes:
> If I use a compressed file in Allegro and I need to read in chunks at a
> time
> and might possible read a chunk several 1000 times during program
> execution. How
> would I do this? I think that I should use the pack_fopen_chunk(), but
> how would
> I go back and forth in a file if I can't use seek because the file is
> compressed.
> 
> Please help,
> Patrick


Load the chunk that will be used a lot and keep it in RAM?

(BTW, Allegro specific questions ought to have Allegro in the subject
header. That way Allegro-neophytes can skip it and it will catch the
attention of Allegro gurus like Shawn.)

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019