|
@@ -355,8 +355,8 @@ Var
|
|
begin
|
|
begin
|
|
Result:=Length(S)*SizeOf(TJSWriterChar);
|
|
Result:=Length(S)*SizeOf(TJSWriterChar);
|
|
if Result=0 then exit;
|
|
if Result=0 then exit;
|
|
- MinLen:=Result+FBufPos;
|
|
|
|
- If (MinLen>Capacity) then
|
|
|
|
|
|
+ MinLen:=Result+integer(FBufPos);
|
|
|
|
+ If (MinLen>integer(Capacity)) then
|
|
begin
|
|
begin
|
|
DesLen:=(FCapacity*3) div 2;
|
|
DesLen:=(FCapacity*3) div 2;
|
|
if DesLen>MinLen then
|
|
if DesLen>MinLen then
|
|
@@ -364,7 +364,7 @@ begin
|
|
Capacity:=MinLen;
|
|
Capacity:=MinLen;
|
|
end;
|
|
end;
|
|
Move(S[1],FBuffer[FBufPos],Result);
|
|
Move(S[1],FBuffer[FBufPos],Result);
|
|
- FBufPos:=FBufPos+Result;
|
|
|
|
|
|
+ FBufPos:=integer(FBufPos)+Result;
|
|
end;
|
|
end;
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|
|
@@ -377,8 +377,8 @@ Var
|
|
begin
|
|
begin
|
|
Result:=Length(S)*SizeOf(UnicodeChar);
|
|
Result:=Length(S)*SizeOf(UnicodeChar);
|
|
if Result=0 then exit;
|
|
if Result=0 then exit;
|
|
- MinLen:=Result+FBufPos;
|
|
|
|
- If (MinLen>Capacity) then
|
|
|
|
|
|
+ MinLen:=Result+integer(FBufPos);
|
|
|
|
+ If (MinLen>integer(Capacity)) then
|
|
begin
|
|
begin
|
|
DesLen:=(FCapacity*3) div 2;
|
|
DesLen:=(FCapacity*3) div 2;
|
|
if DesLen>MinLen then
|
|
if DesLen>MinLen then
|
|
@@ -386,7 +386,7 @@ begin
|
|
Capacity:=MinLen;
|
|
Capacity:=MinLen;
|
|
end;
|
|
end;
|
|
Move(S[1],FBuffer[FBufPos],Result);
|
|
Move(S[1],FBuffer[FBufPos],Result);
|
|
- FBufPos:=FBufPos+Result;
|
|
|
|
|
|
+ FBufPos:=integer(FBufPos)+Result;
|
|
end;
|
|
end;
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|