Changeset 3 for trunk/Packages


Ignore:
Timestamp:
Jan 27, 2016, 10:32:48 PM (9 years ago)
Author:
chronos
Message:
  • Added: Classes for decoding MAP, CPS, SHP and ENG file formats.
Location:
trunk/Packages
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common

    • Property svn:ignore set to
      lib
  • trunk/Packages/Common/UCommon.pas

    r2 r3  
    1212type
    1313  TArrayOfByte = array of Byte;
     14  TArrayOfInteger = array of Integer;
     15  TArrayOfWord = array of Word;
    1416  TArrayOfString = array of string;
    1517  TExceptionEvent = procedure(Sender: TObject; E: Exception) of object;
  • trunk/Packages/CoolStreaming

    • Property svn:ignore set to
      lib
  • trunk/Packages/CoolStreaming/UStreamHelper.pas

    r2 r3  
    114114  Result := 0;
    115115  FStream.ReadBuffer(Result, SizeOf(Cardinal));
    116   if SwapData then Result := Swap(Result);
     116  if SwapData then Result := SwapEndian(Result);
    117117end;
    118118
     
    121121  Result := 0;
    122122  FStream.ReadBuffer(Result, SizeOf(Int64));
    123   if SwapData then Result := Swap(Result);
     123  if SwapData then Result := SwapEndian(Result);
    124124end;
    125125
     
    298298  Result := 0;
    299299  FStream.ReadBuffer(Result, SizeOf(Word));
    300   if SwapData then Result := Swap(Result);
     300  if SwapData then Result := SwapEndian(Result);
    301301end;
    302302
     
    358358procedure TStreamHelper.WriteCardinal(Data: Cardinal);
    359359begin
    360   if SwapData then Data := Swap(Data);
     360  if SwapData then Data := SwapEndian(Data);
    361361  Write(Data, SizeOf(Cardinal));
    362362end;
     
    364364procedure TStreamHelper.WriteInt64(Data: Int64);
    365365begin
    366   if SwapData then Data := Swap(Data);
     366  if SwapData then Data := SwapEndian(Data);
    367367  Write(Data, SizeOf(Int64));
    368368end;
     
    415415procedure TStreamHelper.WriteWord(Data: Word);
    416416begin
    417   if SwapData then Data := Swap(Data);
     417  if SwapData then Data := SwapEndian(Data);
    418418  Write(Data, SizeOf(Word));
    419419end;
  • trunk/Packages/TemplateGenerics

    • Property svn:ignore set to
      lib
Note: See TracChangeset for help on using the changeset viewer.