|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 6144 (0x1800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Orb_Tools, seg_057141
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Transport_Name; with Utils; with Byte_Defs; package body Orb_Tools is procedure Copy (Source : in Bounded_String.Variable_String; Target : in out Bounded_String.Variable_String) is begin Bounded_String.Copy (Target, Source); end Copy; procedure Copy (Source : in String; Target : in out Bounded_String.Variable_String) is begin Bounded_String.Copy (Target, Source); end Copy; procedure Copy (Source : in Transport_Defs.Host_Id; Target : in out Bounded_String.Variable_String) is begin Bounded_String.Copy (Target, Transport_Name.Host_Id_To_Host (Source)); end Copy; procedure Copy (Source : in Transport_Defs.Socket_Id; Target : in out Bounded_String.Variable_String) is A, B : Byte_Defs.Byte; begin A := Source (1); B := Source (2); Bounded_String.Copy (Surce => Byte_Defs.Byte'Image (A) & '.' & Byte_Defs.Byte'Image (B) & '.', Target => Target); end Copy; function Image (Source : Bounded_String.Variable_String) return String is begin return Bounded_String.Image (Source); end Image; procedure Append (Source : in Bounded_String.Variable_String; Target : in out Bounded_String.Variable_String) is begin Bounded_String.Append (Target, Source); end Append; procedure Append (Source : in String; Target : in out Bounded_String.Variable_String) is begin Bounded_String.Append (Target, Source); end Append; function Vstring_To_Host (Source : Bounded_String.Variable_String) return Transport_Defs.Host_Id is begin return Transport_Name.Host_To_Host_Id (Bounded_String.Image (Source)); end Vstring_To_Host; function Vstring_To_Socket (Source : Bounded_String.Variable_String) return Transport_Defs.Socket_Id is I, J : Natural := 1; A, B : Byte_Defs.Byte; Target : Transport_Defs.Socket_Id (1 .. 2); begin loop exit when Bounded_String.Extract (Source, J, J) = "."; J := J + 1; end loop; Target (1) := Byte_Defs.Byte'Value (Bounded_String.Extract (Source, I, J - 1)); J := J + 1; I := J; loop exit when Bounded_String.Extract (Source, J, J) = "."; J := J + 1; end loop; Target (2) := Byte_Defs.Byte'Value (Bounded_String.Extract (Source, I, J - 1)); return Target; end Vstring_To_Socket; function Vstring_To_Byte_String (Source : Bounded_String.Variable_String) return Byte_Defs.Byte_String is begin return Utils.String_To_Byte_String (Image (Source)); end Vstring_To_Byte_String; procedure Copy (Source : in Byte_Defs.Byte_String; Target : in out Bounded_String.Variable_String) is begin Copy (Target => Target, Source => Utils.Byte_String_To_String (Source)); end Copy; function Extract (Source : Bounded_String.Variable_String; Start_Pos : Positive; End_Pos : Natural) return String is begin return Bounded_String.Extract (Source => Source, Start_Pos => Start_Pos, End_Pos => End_Pos); end Extract; end Orb_Tools;
nblk1=5 nid=0 hdr6=a [0x00] rec0=22 rec1=00 rec2=01 rec3=03c [0x01] rec0=00 rec1=00 rec2=05 rec3=002 [0x02] rec0=1c rec1=00 rec2=04 rec3=09c [0x03] rec0=1c rec1=00 rec2=02 rec3=048 [0x04] rec0=18 rec1=00 rec2=03 rec3=000 tail 0x2154ddff687c59e6a2f6d 0x42a00088462060003