cryostat_genesis.kv 1
cryostat_genesis.kv 2
cryostat_genesis.kv 3
cryostat_genesis.kv 4
cryostat_genesis.kv 5
cryostat_genesis.kv 6
cryostat_genesis.kv 7
cryostat_genesis.kv 8
cryostat_genesis.kv 9
cryostat_genesis.kv 10
cryostat_genesis.kv 11
cryostat_genesis.kv 12
cryostat_genesis.kv 13
cryostat_genesis.kv 14
cryostat_genesis.kv 15
cryostat_genesis.kv 16
cryostat_genesis.kv 17
cryostat_genesis.kv 18 with Interfaces; use Interfaces;
cryostat_genesis.kv 19 with ada.text_io; use ada.text_io;
cryostat_genesis.kv 20
cryostat_genesis.kv 21 with Cryostat;
cryostat_genesis.kv 22
cryostat_genesis.kv 23
cryostat_genesis.kv 24 procedure CryoDemo is
cryostat_genesis.kv 25
cryostat_genesis.kv 26
cryostat_genesis.kv 27 File_Path : constant String := "cryotest.bin";
cryostat_genesis.kv 28
cryostat_genesis.kv 29
cryostat_genesis.kv 30
cryostat_genesis.kv 31
cryostat_genesis.kv 32 subtype ADatum is Unsigned_8;
cryostat_genesis.kv 33
cryostat_genesis.kv 34
cryostat_genesis.kv 35
cryostat_genesis.kv 36 A_MBytes : constant Unsigned_32 := 512;
cryostat_genesis.kv 37
cryostat_genesis.kv 38
cryostat_genesis.kv 39 subtype ARange is Unsigned_32 range 0 .. (A_MBytes * 1024 * 1024) - 1;
cryostat_genesis.kv 40
cryostat_genesis.kv 41
cryostat_genesis.kv 42 type TestArray is array(ARange) of ADatum;
cryostat_genesis.kv 43
cryostat_genesis.kv 44
cryostat_genesis.kv 45 package Cryo is new Cryostat(Form => TestArray,
cryostat_genesis.kv 46 Path => File_Path,
cryostat_genesis.kv 47 Writable => True,
cryostat_genesis.kv 48 Create => True);
cryostat_genesis.kv 49
cryostat_genesis.kv 50
cryostat_genesis.kv 51 T : TestArray renames Cryo.Item;
cryostat_genesis.kv 52
cryostat_genesis.kv 53
cryostat_genesis.kv 54
cryostat_genesis.kv 55 begin
cryostat_genesis.kv 56
cryostat_genesis.kv 57 Put_Line("T(0) before : " & ADatum'Image(T(0)));
cryostat_genesis.kv 58 Put_Line("T(Last) before : " & ADatum'Image(T(T'Last)));
cryostat_genesis.kv 59
cryostat_genesis.kv 60
cryostat_genesis.kv 61 for i in T'Range loop
cryostat_genesis.kv 62 T(i) := T(i) + 1;
cryostat_genesis.kv 63 end loop;
cryostat_genesis.kv 64
cryostat_genesis.kv 65 Put_Line("T(0) after : " & ADatum'Image(T(0)));
cryostat_genesis.kv 66 Put_Line("T(Last) after : " & ADatum'Image(T(T'Last)));
cryostat_genesis.kv 67
cryostat_genesis.kv 68
cryostat_genesis.kv 69
cryostat_genesis.kv 70
cryostat_genesis.kv 71
cryostat_genesis.kv 72
cryostat_genesis.kv 73
cryostat_genesis.kv 74 Put_Line("OK.");
cryostat_genesis.kv 75
cryostat_genesis.kv 76 end CryoDemo;