comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Dynamically reallocated buffer
Date: Fri, 01 Jun 2007 06:08:31 -0700
Date: 2007-06-01T06:08:31-07:00	[thread overview]
Message-ID: <1180703311.273350.181770@q69g2000hsb.googlegroups.com> (raw)
In-Reply-To: <u4fb4toexvdp$.ihj00afaxzeh.dlg@40tude.net>

On 1 Cze, 09:30, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
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/




  reply	other threads:[~2007-06-01 13:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01  6:33 Dynamically reallocated buffer Maciej Sobczak
2007-06-01  7:15 ` anon
2007-06-01 13:04   ` Maciej Sobczak
2007-06-01  7:30 ` Dmitry A. Kazakov
2007-06-01 13:08   ` Maciej Sobczak [this message]
2007-06-01 11:32 ` Georg Bauhaus
2007-06-01 14:49 ` Matthew Heaney
2007-06-02 12:38   ` Stephen Leake
2007-06-03  9:52     ` Georg Bauhaus
2007-06-05  0:25       ` Stephen Leake
replies disabled

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