Changeset 232 for Generics


Ignore:
Timestamp:
Apr 14, 2011, 12:49:38 PM (14 years ago)
Author:
george
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Specialized/SpecializedList.pas

    r129 r232  
    8080{$DEFINE TGListIndex := Integer}
    8181{$DEFINE TGListItem := Byte}
    82 {$DEFINE TGList := TListByte}
     82{$DEFINE TGList := TListByteBase}
    8383{$DEFINE TGListSortCompare := TListByteSortCompare}
    8484{$DEFINE TGListToStringConverter := TListByteToStringConverter}
     
    8787{$DEFINE INTERFACE}
    8888{$I 'GenericList.inc'}
     89
     90TListByte = class(TListByteBase)
     91  procedure WriteToStream(Stream: TStream);
     92end;
    8993
    9094// TListChar<Integer, Char>
     
    216220{$DEFINE TGListIndex := Integer}
    217221{$DEFINE TGListItem := Byte}
    218 {$DEFINE TGList := TListByte}
     222{$DEFINE TGList := TListByteBase}
    219223{$DEFINE TGListSortCompare := TListByteSortCompare}
    220224{$DEFINE TGListToStringConverter := TListByteToStringConverter}
     
    334338end;
    335339
     340procedure TListByte.WriteToStream(Stream: TStream);
     341var
     342  I: Integer;
     343begin
     344  I := 0;
     345  while I < Count do
     346    Stream.WriteByte(Items[I]);
     347end;
     348
     349
    336350end.
Note: See TracChangeset for help on using the changeset viewer.