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,15e41875b75969fc X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sun, 03 Jun 2007 11:52:57 +0200 From: Georg Bauhaus Organization: elsewhere User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Dynamically reallocated buffer References: <1180679626.254857.59070@w5g2000hsg.googlegroups.com> <1180709349.464436.287820@g4g2000hsf.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <46628ed5$0$23149$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Date: 03 Jun 2007 11:50:13 CEST NNTP-Posting-Host: 0dab0ad1.newsspool1.arcor-online.net X-Trace: DXC=;Mk7\EBFOBBAa;:RKVJ>LEic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YB96JoZd`:[]IA:ho7QcPOVCQemMn>J=O=KC3dKER8PeAK X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:16053 Date: 2007-06-03T11:50:13+02:00 List-Id: Stephen Leake wrote: > Matthew Heaney writes: > >> On Jun 1, 2:33 am, Maciej Sobczak wrote: >>> The problem is that Ada.Containers.Vectors does not provide the >>> necessary guarantees to be any useful in this context. >> Right, that container does not guarantee that the underlying structure >> is a contiguous array (as is the case in C++). Think of it not as an >> unbounded array (which would a physical view), but rather as a >> container that provides random access (which is the logical view). > > SAL.Poly.Unbounded_Arrays. http://stephe-leake.org/ada/sal.html How would I pass the array storage of an Array_Type object to a byte copying function? (As in write_to_device(&buffer[0], buffer.size());)