|
|
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 - metrics - download
Length: 4096 (0x1000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Orb_Tools, seg_0561d1
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Transport_Name;
with Utils;
with Byte_Defs;
package body Orb_Tools is
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 (Source => 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;
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;
end Orb_Tools;
nblk1=3
nid=0
hdr6=6
[0x00] rec0=21 rec1=00 rec2=01 rec3=036
[0x01] rec0=1d rec1=00 rec2=02 rec3=00c
[0x02] rec0=12 rec1=00 rec2=03 rec3=000
tail 0x21761e4ba87c373225a94 0x42a00088462060003