Ignore:
Timestamp:
Aug 14, 2012, 10:31:30 AM (12 years ago)
Author:
chronos
Message:
  • Modified: PinConnection package now use for data parameters TListByte instead of TStream class contained in TemplateGenerics package. TStream have Position property which has no meaning for forwarding plain byte memory block. There is TBinarySerializer class used for serializing data instead of TStreamHelper class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommConcentrator.pas

    r289 r407  
    99
    1010uses
    11   Classes, SysUtils, Contnrs, UCommPin;
     11  Classes, SysUtils, Contnrs, UCommPin, SpecializedList;
    1212
    1313type
     
    3131    FPins: TPinList;
    3232    FMain: TCommPin;
    33     procedure MainReceive(Sender: TCommPin; Stream: TStream);
     33    procedure MainReceive(Sender: TCommPin; Stream: TListByte);
    3434    procedure MainSetStatus(Sender: TCommPin; Status: Integer);
    35     procedure Receive(Sender: TCommPin; Stream: TStream);
     35    procedure Receive(Sender: TCommPin; Stream: TListByte);
    3636    procedure SetStatus(Sender: TCommPin; Status: Integer);
    3737  public
     
    7575{ TCommConcentrator }
    7676
    77 procedure TCommConcentrator.MainReceive(Sender: TCommPin; Stream: TStream);
     77procedure TCommConcentrator.MainReceive(Sender: TCommPin; Stream: TListByte);
    7878var
    7979  I: Integer;
     
    9999end;
    100100
    101 procedure TCommConcentrator.Receive(Sender: TCommPin; Stream: TStream);
     101procedure TCommConcentrator.Receive(Sender: TCommPin; Stream: TListByte);
    102102begin
    103103  if FActive then FMain.Send(Stream);
Note: See TracChangeset for help on using the changeset viewer.