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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:620a:795:: with SMTP id 21mr16711580qka.60.1581608644978; Thu, 13 Feb 2020 07:44:04 -0800 (PST) X-Received: by 2002:a9d:7493:: with SMTP id t19mr13686288otk.332.1581608644545; Thu, 13 Feb 2020 07:44:04 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 13 Feb 2020 07:44:04 -0800 (PST) In-Reply-To: <2a19cdb1-6f01-4b1d-8597-b6ee21ed60ed@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=92.56.166.72; posting-account=C8J7NQoAAAD_ybGY7--QIRi6KpLjoH1Z NNTP-Posting-Host: 92.56.166.72 References: <2a19cdb1-6f01-4b1d-8597-b6ee21ed60ed@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <21f3f3e5-b462-4359-adf9-700c5647f573@googlegroups.com> Subject: Re: Simple Data Endianness From: Daniel Injection-Date: Thu, 13 Feb 2020 15:44:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58048 Date: 2020-02-13T07:44:04-08:00 List-Id: i guess you want to serialize this data between 2 diferents CPUs families. I think ADA only thought an automatic solution for mapped records. You have two solutions. First is really ugly: Put that type into a field of a single field mapped record. Sencod is also ugly: Swap by your self the 4 bytes of this 32 bits type. Gnat have for example gnat.Byte_Swapping.Swap4 library to do it. Regards.