comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com
Subject: Re: S'Write and How To Count Bytes
Date: Mon, 02 Oct 2000 06:58:29 GMT
Date: 2000-10-02T06:58:29+00:00	[thread overview]
Message-ID: <pmWB5.274453$i5.3801896@news1.frmt1.sfba.home.com> (raw)
In-Reply-To: 39D6891A.7DC448B6@acm.org

> Is there any good way of determining in advance how many bytes you are
> going to get when converting an object to a stream?
  I don't think I understand.  Why not
  type Buffer_Type is new Root_Stream_Type with record
    Last : Natural := 0;
    Data : Stream_Element_Array(1 .. 1000);
  end record;
  Then each 'write can append its stuff to Data and increment Last
and when they have all finished you have a count and a Stream_Element_Array
to pass to your IO output routine.
-----------------
The experienced programmer knows that work performed after midnight
is likely to be negatively useful.



  parent reply	other threads:[~2000-10-02  6:58 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-30  0:00 S'Write and How To Count Bytes Marin David Condic
2000-10-01  0:00 ` David C. Hoos, Sr.
2000-10-02  0:00   ` Marin David Condic
2000-10-02  0:00     ` Ted Dennison
2000-10-02  0:00       ` tmoran
2000-10-02  0:00         ` tmoran
2000-10-02  0:00           ` Marin David Condic
2000-10-11  0:00             ` Nick Roberts
2000-10-11  0:00               ` Marin David Condic
2000-10-02  0:00           ` Ted Dennison
2000-10-02  0:00         ` Marin David Condic
2000-10-03  0:00       ` Robert A Duff
2000-10-06  0:00         ` Randy Brukardt
2000-10-07  0:11           ` Ted Dennison
2000-10-06  0:00             ` Randy Brukardt
2000-10-07  0:00             ` Marin David Condic
2000-10-08  0:00               ` Jean-Pierre Rosen
2000-10-09  0:00                 ` Randy Brukardt
2000-10-11  0:00                 ` Marin David Condic
2000-10-02  0:00   ` Dr. Joachim Schr�er
2000-10-02  0:00     ` Marin David Condic
2000-10-06  0:00       ` Charles Hixson
2000-10-02  0:00 ` David C. Hoos, Sr.
2000-10-02  6:58 ` tmoran [this message]
2000-10-02  0:00   ` Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2000-10-02  0:00 tmoran
2000-10-03  5:21 ` Marin David Condic
2000-10-03  0:00 Mario Amado Alves
2000-10-03  0:00 ` Marin David Condic
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox