From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c96efb67e4b1a2c5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-17 22:39:45 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!bloom-beacon.mit.edu!news.bu.edu!inmet!dsd!stt From: stt@dsd.camb.inmet.com (Tucker Taft) Subject: Re: How does the Ada 95 Streams package Index? Message-ID: Sender: news@inmet.camb.inmet.com Organization: Intermetrics, Inc. References: <3cra2n$rio@ixnews1.ix.netcom.com> Date: Sat, 17 Dec 1994 14:05:27 GMT Date: 1994-12-17T14:05:27+00:00 List-Id: In article <3cra2n$rio@ixnews1.ix.netcom.com>, Timothy Halloran wrote: >>From examining the Ada 95 reference manual I get the impression that >a file created with the streams package is able to move to numbered >records in the file (e.g. Read the 5th record). How is this intended >to be implemented in light of the variable length of the records which >could be in the file? Are all the records expanded to the largest size >or are divider bytes inserted in the file. The positioning is by Stream_Element, not by record. A Stream_Element is expected to be a byte on most systems, so this is simply lo-tech seek-to-specified-byte, something that is available on (almost ;-) every operating system. >GNAT doesn't have this package yet (but soon will I am told) so I >haven't been able to "test" this package out. Anyone up on this? See above. >A Humble Ada Programmer, >Tim Halloran -Tucker Taft stt@inmet.com