DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦7d7396bcb⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Buffer, seg_051232

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



generic

    type Item is private;

    Taille : Natural;

package Buffer is

    type Object is private;

    procedure Create (O : in out Object);

    procedure Add (O : in out Object; I : Item);
    procedure Get (O : in out Object; I : in out Item);

    function Is_Empty (O : Object) return Boolean;
    function Is_Full (O : Object) return Boolean;

    function Empty_Places (O : Object) return Natural;

    Buffer_Full_Error : exception;
    Buffer_Empty_Error : exception;

private

    type T_Buffer is array (1 .. Taille) of Item;

    type Object is
        record
            Buff : T_Buffer;
            Nb_Item : Natural := 0;
            Tete : Natural := 1;
            Queue : Natural := 1;
        end record;

end Buffer;

E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=26 rec1=00 rec2=01 rec3=000
    tail 0x2154b285a87995af5f534 0x42a00088462060003