|
|
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 Message, seg_00fec0
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Client;
with Bounded_String;
with Message_Types;
package body Message is
Max_Size : constant := 100;
type Packet_Block is
record
Source, Destination : Client.Id;
Class : Message_Types.Message_Type;
Msg_Body : Bounded_String.Variable_String (Max_Size);
end record;
procedure Initialize (Buffer : in out Packet; Source : Client.Id) is
begin
if Buffer = null then
Buffer := new Packet_Block;
end if;
Buffer.Source := Source;
end Initialize;
procedure Copy (Source : Packet; Destination : in out Packet) is
begin
Destination.all := Source.all;
end Copy;
procedure Set_Destination (Buffer : in out Packet;
Destination : Client.Id) is
begin
Buffer.Destination := Destination;
end Set_Destination;
procedure Set_Class (Buffer : in out Packet; Class : Message_Type) is
begin
Buffer.Class := Class;
end Set_Class;
procedure Set_Body (Buffer : in out Packet; Packet_Body : String) is
begin
Bounded_String.Copy (Buffer.Msg_Body, Packet_Body);
end Set_Body;
function Binary_Image (Buffer : Packet) return System.Byte_String is
begin
[statement]
end Binary_Image;
function Recover_Packet (Buffer : System.Byte_String) return Packet is
begin
[statement]
end Recover_Packet;
function Packet_Body (Buffer : Packet) return String is
begin
return Bounded_String.Image (Buffer.Msg_Body);
end Packet_Body;
function Class (Buffer : Packet) return Message_Type is
begin
return Buffer.Class;
end Class;
function Source (Buffer : Packet) return Client.Id is
begin
return Buffer.Source;
end Source;
function Destination (Buffer : Packet) return Client.Id is
begin
return Buffer.Destination;
end Destination;
end Message;
nblk1=3
nid=0
hdr6=6
[0x00] rec0=25 rec1=00 rec2=01 rec3=076
[0x01] rec0=2a rec1=00 rec2=02 rec3=062
[0x02] rec0=05 rec1=00 rec2=03 rec3=000
tail 0x2170c1e44822f63e4210a 0x42a00088462060003