- Timestamp:
- Apr 14, 2011, 12:49:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Specialized/SpecializedList.pas
r129 r232 80 80 {$DEFINE TGListIndex := Integer} 81 81 {$DEFINE TGListItem := Byte} 82 {$DEFINE TGList := TListByte }82 {$DEFINE TGList := TListByteBase} 83 83 {$DEFINE TGListSortCompare := TListByteSortCompare} 84 84 {$DEFINE TGListToStringConverter := TListByteToStringConverter} … … 87 87 {$DEFINE INTERFACE} 88 88 {$I 'GenericList.inc'} 89 90 TListByte = class(TListByteBase) 91 procedure WriteToStream(Stream: TStream); 92 end; 89 93 90 94 // TListChar<Integer, Char> … … 216 220 {$DEFINE TGListIndex := Integer} 217 221 {$DEFINE TGListItem := Byte} 218 {$DEFINE TGList := TListByte }222 {$DEFINE TGList := TListByteBase} 219 223 {$DEFINE TGListSortCompare := TListByteSortCompare} 220 224 {$DEFINE TGListToStringConverter := TListByteToStringConverter} … … 334 338 end; 335 339 340 procedure TListByte.WriteToStream(Stream: TStream); 341 var 342 I: Integer; 343 begin 344 I := 0; 345 while I < Count do 346 Stream.WriteByte(Items[I]); 347 end; 348 349 336 350 end.
Note:
See TracChangeset
for help on using the changeset viewer.