1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- A D A . S T O R A G E _ I O --
9 -- $Revision: 1.11 $ --
11 -- This specification is adapted from the Ada Reference Manual for use with --
12 -- GNAT. In accordance with the copyright of that document, you can freely --
13 -- copy and modify this specification, provided that if you redistribute a --
14 -- modified version, any changes that you have made are clearly indicated. --
16 ------------------------------------------------------------------------------
18 with Ada.IO_Exceptions;
19 with System.Storage_Elements;
22 type Element_Type is private;
24 package Ada.Storage_IO is
25 pragma Preelaborate (Storage_IO);
27 Buffer_Size : constant System.Storage_Elements.Storage_Count :=
28 System.Storage_Elements.Storage_Count
29 ((Element_Type'Size + System.Storage_Unit - 1) /
32 subtype Buffer_Type is
33 System.Storage_Elements.Storage_Array (1 .. Buffer_Size);
35 ---------------------------------
36 -- Input and Output Operations --
37 ---------------------------------
39 procedure Read (Buffer : in Buffer_Type; Item : out Element_Type);
41 procedure Write (Buffer : out Buffer_Type; Item : in Element_Type);
47 Data_Error : exception renames IO_Exceptions.Data_Error;