You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class function TSVGGraphic.CanLoadFromStream(Stream: TStream): Boolean;
var
Header: Array[0..4] of AnsiChar;
P: Int64;
TstHdr:ansistring;
begin
P := Stream.Position;
TstHdr:='<?xml';
try
Result := (Stream.Read(Header[0], SizeOf(Header)) = SizeOf(Header)) and
CompareMem(@Header[0], @TstHdr[1], SizeOf(Header));
finally
Stream.Position := P;
end;
end;
The text was updated successfully, but these errors were encountered:
class function TSVGGraphic.CanLoadFromStream(Stream: TStream): Boolean;
var
Header: Array[0..4] of AnsiChar;
P: Int64;
TstHdr:ansistring;
begin
P := Stream.Position;
TstHdr:='<?xml';
try
Result := (Stream.Read(Header[0], SizeOf(Header)) = SizeOf(Header)) and
CompareMem(@Header[0], @TstHdr[1], SizeOf(Header));
finally
Stream.Position := P;
end;
end;
The text was updated successfully, but these errors were encountered: