From: jerry@jvdsys.stuyts.nl (Jerry van Dijk)
Subject: Re: Ada95 Streams
Date: 1998/12/02
Date: 1998-12-02T00:00:00+00:00 [thread overview]
Message-ID: <F3Cn9t.Ew@jvdsys.stuyts.nl> (raw)
In-Reply-To: 742rpk$2t4$1@nnrp1.dejanews.com
david_jones_98@yahoo.com wrote:
: 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.
What I usually do, is to read the data into a block of memory, than use the
System.Address_To_Access_Conversions package to create an access type and
value to the records inside it.
The DLL2DEF package on my homepage uses this.
Jerry.
--
-- Jerry van Dijk | email: jdijk@acm.org
-- Leiden, Holland | member Team-Ada
-- Ada & Win32: http://stad.dsl.nl/~jvandyk
next prev parent reply other threads:[~1998-12-02 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-02 0:00 Ada95 Streams david_jones_98
1998-12-02 0:00 ` Jerry van Dijk [this message]
1998-12-03 0:00 ` david_jones_98
1998-12-03 0:00 ` Jerry van Dijk
1998-12-04 0:00 ` Richard D Riehle
1998-12-03 0:00 ` Srinivasan, R
1998-12-05 0:00 ` david.c.hoos.sr
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox