Ignore:
Timestamp:
Mar 6, 2016, 12:10:38 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Built with FPC 3.0.0. Fixed various compiler messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/TemplateGenerics/Additional/UBinarySerializer.pas

    r54 r72  
    6565  StringLength: Longint;
    6666begin
     67  StringLength  := 0;
    6768  FStream.ReadBuffer(StringLength, SizeOf(StringLength));
    6869  Result := ReadString(StringLength);
     
    9495function TBinarySerializer.ReadByte: Byte;
    9596begin
     97  Result := 0;
    9698  FStream.ReadBuffer(Result, SizeOf(Byte));
    9799end;
     
    99101function TBinarySerializer.ReadCardinal: Cardinal;
    100102begin
     103  Result := 0;
    101104  FStream.ReadBuffer(Result, SizeOf(Cardinal));
    102105  if SwapData then Result := SwapEndian(Result);
     
    105108function TBinarySerializer.ReadInt64: Int64;
    106109begin
     110  Result := 0;
    107111  FStream.ReadBuffer(Result, SizeOf(Int64));
    108112  if SwapData then Result := SwapEndian(Result);
     
    121125  Count: Byte;
    122126begin
     127  Count := 0;
    123128  FStream.ReadBuffer(Count, 1);
    124129  Result := ReadString(Count);
     
    206211function TBinarySerializer.ReadDouble: Double;
    207212begin
     213  Result := 0;
    208214  FStream.ReadBuffer(Result, SizeOf(Double));
    209215end;
     
    211217function TBinarySerializer.ReadSingle: Single;
    212218begin
     219  Result := 0;
    213220  FStream.ReadBuffer(Result, SizeOf(Single));
    214221end;
     
    216223function TBinarySerializer.ReadWord: Word;
    217224begin
     225  Result := 0;
    218226  FStream.ReadBuffer(Result, SizeOf(Word));
    219227  if SwapData then Result := SwapEndian(Result);
     
    262270procedure TBinarySerializer.WriteByte(Data: Byte);
    263271begin
     272  Data := 0;
    264273  FStream.WriteBuffer(Data, SizeOf(Byte));
    265274end;
Note: See TracChangeset for help on using the changeset viewer.