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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,127b4bdd944554a9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Separate type for byte arrays Date: Thu, 04 May 2006 17:14:24 +0200 Message-ID: <8764klddpr.fsf@mid.deneb.enyo.de> References: <87irolhpzo.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1146755664 23151 212.9.189.177 (4 May 2006 15:14:24 GMT) X-Complaints-To: Cancel-Lock: sha1:f8SHtX30NEkPnm6bfIMD1TwTKpk= Xref: g2news2.google.com comp.lang.ada:4063 Date: 2006-05-04T17:14:24+02:00 List-Id: * Frank J. Lhota: > Florian Weimer wrote: >> ... >> Any suggestions? I'm aiming for something similar java.nio.*. > > Would streams meet your needs? No, the interface does not cope with partial reads and writes ("Last is less than Item'Last only if the end of the stream is reached). Unfortunately, they are common in networking applications, and the layer below the streams would need protocol-dependent knowledge to tell whether an end-of-stream condition is reached.