Changeset 72 for trunk/Packages/TemplateGenerics
- Timestamp:
- Mar 6, 2016, 12:10:38 AM (9 years ago)
- Location:
- trunk/Packages/TemplateGenerics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/TemplateGenerics/Additional/UBinarySerializer.pas
r54 r72 65 65 StringLength: Longint; 66 66 begin 67 StringLength := 0; 67 68 FStream.ReadBuffer(StringLength, SizeOf(StringLength)); 68 69 Result := ReadString(StringLength); … … 94 95 function TBinarySerializer.ReadByte: Byte; 95 96 begin 97 Result := 0; 96 98 FStream.ReadBuffer(Result, SizeOf(Byte)); 97 99 end; … … 99 101 function TBinarySerializer.ReadCardinal: Cardinal; 100 102 begin 103 Result := 0; 101 104 FStream.ReadBuffer(Result, SizeOf(Cardinal)); 102 105 if SwapData then Result := SwapEndian(Result); … … 105 108 function TBinarySerializer.ReadInt64: Int64; 106 109 begin 110 Result := 0; 107 111 FStream.ReadBuffer(Result, SizeOf(Int64)); 108 112 if SwapData then Result := SwapEndian(Result); … … 121 125 Count: Byte; 122 126 begin 127 Count := 0; 123 128 FStream.ReadBuffer(Count, 1); 124 129 Result := ReadString(Count); … … 206 211 function TBinarySerializer.ReadDouble: Double; 207 212 begin 213 Result := 0; 208 214 FStream.ReadBuffer(Result, SizeOf(Double)); 209 215 end; … … 211 217 function TBinarySerializer.ReadSingle: Single; 212 218 begin 219 Result := 0; 213 220 FStream.ReadBuffer(Result, SizeOf(Single)); 214 221 end; … … 216 223 function TBinarySerializer.ReadWord: Word; 217 224 begin 225 Result := 0; 218 226 FStream.ReadBuffer(Result, SizeOf(Word)); 219 227 if SwapData then Result := SwapEndian(Result); … … 262 270 procedure TBinarySerializer.WriteByte(Data: Byte); 263 271 begin 272 Data := 0; 264 273 FStream.WriteBuffer(Data, SizeOf(Byte)); 265 274 end; -
trunk/Packages/TemplateGenerics/Generic/GenericMatrix.inc
r54 r72 49 49 function Implode(RowSeparator, ColSeparator: string; Converter: TGMatrixToStringConverter): string; 50 50 procedure Explode(Text, Separator: string; Converter: TGMatrixFromStringConverter; SlicesCount: Integer = -1); 51 function IndexOf(Item: TGMatrixItem; Start: TGMatrixIndex = 0): TGMatrixIndex;52 function IndexOfList(List: TGMatrix; Start: TGMatrixIndex = 0): TGMatrixIndex;51 function IndexOf(Item: TGMatrixItem; Start: TGMatrixIndex): TGMatrixIndex; 52 function IndexOfList(List: TGMatrix; Start: TGMatrixIndex): TGMatrixIndex; 53 53 procedure Insert(Index: TGMatrixIndex; Item: TGMatrixItem); 54 54 procedure InsertList(Index: TGMatrixIndex; List: TGMatrix); -
trunk/Packages/TemplateGenerics/TemplateGenerics.lpk
r54 r72 1 <?xml version="1.0" ?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <CONFIG> 3 3 <Package Version="4"> 4 4 <PathDelim Value="\"/> 5 5 <Name Value="TemplateGenerics"/> 6 <Type Value="RunAndDesignTime"/> 6 7 <AddToProjectUsesSection Value="True"/> 7 8 <Author Value="Chronos (robie@centrum.cz)"/> … … 16 17 <CodeGeneration> 17 18 <Optimizations> 19 <OptimizationLevel Value="3"/> 18 20 <VariablesInRegisters Value="True"/> 19 <OptimizationLevel Value="3"/>20 21 </Optimizations> 21 22 </CodeGeneration> 22 23 <Other> 23 24 <CompilerMessages> 24 < UseMsgFile Value="True"/>25 <IgnoredMessages idx5024="True"/> 25 26 </CompilerMessages> 26 <CompilerPath Value="$(CompPath)"/>27 27 </Other> 28 28 </CompilerOptions> … … 139 139 </Item27> 140 140 </Files> 141 <Type Value="RunAndDesignTime"/>142 141 <RequiredPkgs Count="2"> 143 142 <Item1> -
trunk/Packages/TemplateGenerics/TemplateGenerics.pas
r54 r72 5 5 unit TemplateGenerics; 6 6 7 {$warn 5023 off : no warning about unused units} 7 8 interface 8 9
Note:
See TracChangeset
for help on using the changeset viewer.