Ignore:
Timestamp:
Jun 18, 2012, 10:42:17 PM (12 years ago)
Author:
chronos
Message:
  • Modified: QueryParts renamed to Path as TListString type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Network/CoolWeb/Common/UMemoryStreamEx.pas

    r94 r376  
    4646    function Sum: Byte;
    4747    procedure FillByte(Data: Byte; Count: Integer);
     48    procedure Assign(Source: TMemoryStreamEx);
    4849    constructor Create;
    4950    property Endianness: TEndianness read FEndianness write SetEndianness;
     
    204205end;
    205206
     207procedure TMemoryStreamEx.Assign(Source: TMemoryStreamEx);
     208var
     209  OldPosition: Int64;
     210begin
     211  FEndianness := Source.FEndianness;
     212  SwapData := Source.SwapData;
     213  OldPosition := Source.Position;
     214  Clear;
     215  Source.Position := 0;
     216  CopyFrom(Source, Source.Size);
     217  Position := OldPosition;
     218  Source.Position := OldPosition;
     219end;
     220
    206221function TMemoryStreamEx.ReadWord: Word;
    207222begin
Note: See TracChangeset for help on using the changeset viewer.