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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f01074ab77d36018 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Random access. Date: 1998/08/30 Message-ID: #1/1 X-Deja-AN: 386109654 Sender: matt@mheaney.ni.net References: <6s9hf7$cg$1@platane.wanadoo.fr> NNTP-Posting-Date: Sun, 30 Aug 1998 03:17:49 PDT Newsgroups: comp.lang.ada Date: 1998-08-30T00:00:00+00:00 List-Id: "BARDIN Marc" writes: > - I need to use direct access file. > - It's ok to instantiate with static descriptor (i.e : package Dir_Es is new > Direct_Io (1);). But my need is a dynamic access, i should want to change > the access size dynamically to read/write exactly number of bytes i want at > location i wish. Package Ada.Direct_IO is for homogenous collections. You appear to need heterogeneous collections, in which case you should look at Ada.Streams.Stream_IO to see if it meets your needs.