diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-11 07:28:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-11 07:28:12 +0000 |
commit | 4df46758e3ca576a7a52571edc9425b307d946df (patch) | |
tree | 20f2f854a92802eab45991beb88fadc296148a59 /gtk/summary_dlg.c | |
parent | fa7f38180a79328d875ddadca9d0758ff0e8f2e8 (diff) |
If we have a random stream open for a compressed Sniffer file, have the
sequential pass through the file build a list of information about the
compressed blobs, with the starting offset in the compressed file and in
the uncompressed byte stream for each blob.
When seeking on the random stream, check whether the target location is
within the uncompressed buffer we currently have; if not, use that list
to figure out which blob contains the target location, and read that
blob into the buffer. Then, as we now know that the target location is
within the uncompressed buffer we currently have, just move the current
pointer into that buffer to the target location.
This means we don't have to read forwards through any uninteresting
blobs in order to seek forwards, and don't have to go all the way back
to the beginning and seek forwards in order to seek backwards.
svn path=/trunk/; revision=2251
Diffstat (limited to 'gtk/summary_dlg.c')
0 files changed, 0 insertions, 0 deletions