From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:a094:: with SMTP id j142mr7674563qke.465.1631834519397; Thu, 16 Sep 2021 16:21:59 -0700 (PDT) X-Received: by 2002:a25:8409:: with SMTP id u9mr271127ybk.159.1631834519137; Thu, 16 Sep 2021 16:21:59 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 16 Sep 2021 16:21:58 -0700 (PDT) In-Reply-To: <1d2551f4-8189-44ec-a54d-4a56a672bedcn@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=98.118.241.166; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 98.118.241.166 References: <1d2551f4-8189-44ec-a54d-4a56a672bedcn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Custom Storage Pool questions From: Jere Injection-Date: Thu, 16 Sep 2021 23:21:59 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62757 List-Id: On Thursday, September 16, 2021 at 3:13:00 AM UTC-4, Emmanuel wrote: > In the case of the GNATCOLL headers pool, we need to allocate more becaus= e the user wants to store extra data. For that data, we are left on our own= to find the number of bytes we need, which is part of the computation we d= o: we of course need the number of bytes for the header's object_size, but = also perhaps some extra bytes that are not returned by that object_size in = particular for controlled types and arrays.=20 > Note again that those additional bytes are for the header type, not for t= he type the user is allocating (for which, again, the compiler already pass= es the number of bytes it needs).=20 >=20 > > Emmanuel Thanks for the response Emmanuel. That clears it up for me. I think the c= onfusion for me=20 came from the terminology used then. In the blog, that extra space for Fir= st/Last and Prev/Next=20 was mentioned as if it were for the element, which I mistook was the user's= object being allocated=20 and not the header portion. I didn't catch that as the generic formal's na= me, so that is my mistake. =20 I guess in my head, I would have expected the formal name to be Header_Type= or similar so I misread it in my haste. I appreciate the clarity and apologize if I caused too much of a stir. I w= as asking the question=20 because I didn't understand, so I hope you don't think too poorly of me for= it, despite my mistake.