Changeset 307 for CoolStreaming/UStreamHelper.pas
- Timestamp:
- Jan 3, 2012, 10:36:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolStreaming/UStreamHelper.pas
r291 r307 23 23 procedure SetItem(Index: Integer; const AValue: Byte); 24 24 public 25 procedure Assign(Source: TStreamHelper); 25 26 procedure WriteByte(Data: Byte); 26 27 procedure WriteWord(Data: Word); … … 281 282 end; 282 283 284 procedure TStreamHelper.Assign(Source: TStreamHelper); 285 var 286 OldPosition: Integer; 287 begin 288 OldPosition := Source.Position; 289 Clear; 290 WriteStream(Source, Source.Size); 291 Source.Position := OldPosition; 292 Position := OldPosition; 293 end; 294 283 295 procedure TStreamHelper.WriteAnsiString(Data: string); 284 296 var
Note:
See TracChangeset
for help on using the changeset viewer.