- Timestamp:
- Aug 14, 2012, 10:31:30 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Additional/UBinarySerializer.pas
r405 r407 187 187 Buffer: array of Byte; 188 188 begin 189 if Count > (List.Count - StartIndex) then Count := (List.Count - StartIndex); // Limit max. stream size190 if Count > 0 then begin 191 SetLength(Buffer, Count); 192 List.GetBuffer(StartIndex, PByte(Buffer) , Count);189 // if Count > (List.Count - StartIndex) then Count := (List.Count - StartIndex); // Limit max. stream size 190 if Count > 0 then begin 191 SetLength(Buffer, Count); 192 List.GetBuffer(StartIndex, PByte(Buffer)^, Count); 193 193 Write(Pointer(Buffer)^, Count); 194 194 end; … … 206 206 begin 207 207 FList.Count := 0; 208 Position := 0; 208 209 end; 209 210
Note:
See TracChangeset
for help on using the changeset viewer.