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-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Sockets, Streams, and Element_Arrays: Much confusion Date: Sat, 31 Dec 2022 23:49:33 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 31 Dec 2022 22:49:34 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="382d482095c3cfbb469092ceacb6d66d"; logging-data="1054542"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hTnOg0Q0TGeOLeokup9o0S1BhG4gNcyU=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cancel-Lock: sha1:BP6xOUSSqfp7tS6DNpZ7fXsFM1A= Content-Language: en-US In-Reply-To: Xref: reader01.eternal-september.org comp.lang.ada:64757 List-Id: On 2022-12-31 23:32, philip...@gmail.com wrote: > > Getting between Stream_Element_Array and a byte array is a pain and I wound up just looping over arrays, copying one byte at a time. If somebody has a better idea, let me know. You should be able to use Unchecked_Conversion for that. -- Jeff Carter "My legs are gray, my ears are gnarled, my eyes are old and bent." Monty Python's Life of Brian 81