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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fad7b049cb669896 X-Google-Attributes: gid103376,public From: "Srinivasan, R" Subject: Re: Ada95 Streams Date: 1998/12/03 Message-ID: <747h04$vr2$1@nw001t.infi.net>#1/1 X-Deja-AN: 418463198 References: <742rpk$2t4$1@nnrp1.dejanews.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: InfiNet Newsgroups: comp.lang.ada Date: 1998-12-03T00:00:00+00:00 List-Id: I do not believe you need to extend the root_stream_type. I believe you want to use the 'Read for the specific data type on the stream. For instance if you had a Header_T type defined and Hdr is an object of that type : Header_T'Read ( Saveset.Savestr , Hdr ) ; I have used this approach for heterogeneous reads from binary files. david_jones_98@yahoo.com wrote in message <742rpk$2t4$1@nnrp1.dejanews.com>... >I'm using stream_io get heterogeneous (several different types) input from a >binary file, which works great. I read in a block of data from the file, then >perform a crc check on it, and then if the crc is ok, i need to read some >records from that block of data which is now in memory. I'd like to do this >using the same stream attributes I use when reading from the file. > >How should I extend the root_stream_type to do this? At the moment I store the >block of data as an array of bytes. > >-----------== Posted via Deja News, The Discussion Network ==---------- >http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own