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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,90b27c91e19c3731 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news2.volia.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: I/O streaming with custom data transport From: Georg Bauhaus In-Reply-To: References: <4sgsgoFvn3caU1@mid.individual.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1164211904.20501.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Wed, 22 Nov 2006 17:11:44 +0100 NNTP-Posting-Date: 22 Nov 2006 17:02:31 CET NNTP-Posting-Host: bde24a3d.newsspool3.arcor-online.net X-Trace: DXC=K8XhVXa94Xa^Y=RbYBPl4`McF=Q^Z^V3h4Fo<]lROoRagUcjd<3m<;bGiaVjL8nBLonI_F1:>;OKnj_eH[TNeo8hLeC0gjXO2Af_oHF]]1bjGi X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7644 Date: 2006-11-22T17:02:31+01:00 List-Id: On Wed, 2006-11-22 at 15:37 +0100, Maciej Sobczak wrote: > For the moment I assume that in order to do this with text, I have to > first format it in some string buffer and then do: > > String'Write(S, Buf); Have you considered for T'Write use Your_Function... Also, Ada.Text_IO.Text_Streams is an example of how to use the attribute functions with text file streams. So you'd have the formatting in 'Write and the transport mechanics in the new byte stream type.