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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8a34575d5eb275cb X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 19 Apr 2009 22:27:30 +0200 From: Gautier User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Load an object from a file References: <49d5fa88$0$2862$ba620e4c@news.skynet.be> <443d72ca-5bbd-46a3-84c6-e8bd984e5b80@k41g2000yqh.googlegroups.com> <49eb223e$0$2849$ba620e4c@news.skynet.be> In-Reply-To: <49eb223e$0$2849$ba620e4c@news.skynet.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.0.204.59 X-Original-NNTP-Posting-Host: 85.0.204.59 Message-ID: <49eb8975$1_4@news.bluewin.ch> X-Trace: news.bluewin.ch 1240172917 85.0.204.59 (19 Apr 2009 22:28:37 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:5512 Date: 2009-04-19T22:27:30+02:00 List-Id: In the GLOBE_3D and Zip-Ada projects (from link below) you'll find the generic Intel_nb functions that do the I/O by merging/splitting integers of various sizes from/to bytes (the way Ludovic described). It is in the packages GLOBE_3D.IO and Zip.Headers respectively. On the other hand, I kind of remember having read about a GNAT-only way to replace some run-time package to obtain the same with less efforts: T'Read could be doable with a specific endianess, no need to load in small pieces. Maybe I'm dreaming ?... _________________________________________________________ Gautier's Ada programming -- http://sf.net/users/gdemont/ NB: For a direct answer, e-mail address on the Web site!