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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!postnews.google.com!q69g2000hsb.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Dynamically reallocated buffer Date: Fri, 01 Jun 2007 06:08:31 -0700 Organization: http://groups.google.com Message-ID: <1180703311.273350.181770@q69g2000hsb.googlegroups.com> References: <1180679626.254857.59070@w5g2000hsg.googlegroups.com> NNTP-Posting-Host: 137.138.37.241 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1180703311 14870 127.0.0.1 (1 Jun 2007 13:08:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Jun 2007 13:08:31 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070228 Red Hat/1.5.0.10-0.1.slc3 Firefox/1.5.0.10,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q69g2000hsb.googlegroups.com; posting-host=137.138.37.241; posting-account=Ch8E9Q0AAAA7lJxCsphg7hBNIsMsP4AE Xref: g2news1.google.com comp.lang.ada:16026 Date: 2007-06-01T06:08:31-07:00 List-Id: On 1 Cze, 09:30, "Dmitry A. Kazakov" wrote: > type Device_Buffer is array (Positiver range <>) > of Interfaces.C.unsigned_char; I might want to pack it. > The maximal block size is usually known. If not, then device is > stream-oriented and blocks can be safely split into chucks of known size. Yes. > In that case Device_Buffer is a segmented buffer. In most cases you don't > need to realloc anything. Which means - in the worst case I need a list (or some other container) of Device_Buffers. Yes, that makes sense. Thank you, -- Maciej Sobczak http://www.msobczak.com/