Changeset 479 for CoolStreaming/UStreamHelper.pas
- Timestamp:
- Jan 27, 2016, 10:35:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolStreaming/UStreamHelper.pas
r457 r479 114 114 Result := 0; 115 115 FStream.ReadBuffer(Result, SizeOf(Cardinal)); 116 if SwapData then Result := Swap (Result);116 if SwapData then Result := SwapEndian(Result); 117 117 end; 118 118 … … 121 121 Result := 0; 122 122 FStream.ReadBuffer(Result, SizeOf(Int64)); 123 if SwapData then Result := Swap (Result);123 if SwapData then Result := SwapEndian(Result); 124 124 end; 125 125 … … 298 298 Result := 0; 299 299 FStream.ReadBuffer(Result, SizeOf(Word)); 300 if SwapData then Result := Swap (Result);300 if SwapData then Result := SwapEndian(Result); 301 301 end; 302 302 … … 358 358 procedure TStreamHelper.WriteCardinal(Data: Cardinal); 359 359 begin 360 if SwapData then Data := Swap (Data);360 if SwapData then Data := SwapEndian(Data); 361 361 Write(Data, SizeOf(Cardinal)); 362 362 end; … … 364 364 procedure TStreamHelper.WriteInt64(Data: Int64); 365 365 begin 366 if SwapData then Data := Swap (Data);366 if SwapData then Data := SwapEndian(Data); 367 367 Write(Data, SizeOf(Int64)); 368 368 end; … … 415 415 procedure TStreamHelper.WriteWord(Data: Word); 416 416 begin 417 if SwapData then Data := Swap (Data);417 if SwapData then Data := SwapEndian(Data); 418 418 Write(Data, SizeOf(Word)); 419 419 end;
Note:
See TracChangeset
for help on using the changeset viewer.