Changeset 376 for Network/CoolWeb/Common
- Timestamp:
- Jun 18, 2012, 10:42:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Network/CoolWeb/Common/UMemoryStreamEx.pas
r94 r376 46 46 function Sum: Byte; 47 47 procedure FillByte(Data: Byte; Count: Integer); 48 procedure Assign(Source: TMemoryStreamEx); 48 49 constructor Create; 49 50 property Endianness: TEndianness read FEndianness write SetEndianness; … … 204 205 end; 205 206 207 procedure TMemoryStreamEx.Assign(Source: TMemoryStreamEx); 208 var 209 OldPosition: Int64; 210 begin 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; 219 end; 220 206 221 function TMemoryStreamEx.ReadWord: Word; 207 222 begin
Note:
See TracChangeset
for help on using the changeset viewer.