* Fix bug ID #35576

git-svn-id: trunk@42057 -
This commit is contained in:
michael 2019-05-13 20:15:00 +00:00
parent dc592a888f
commit e4385d1b19
2 changed files with 5 additions and 5 deletions

View File

@ -900,8 +900,8 @@ type
Procedure WriteExactSizeData(Const Buffer; aSize,aCount : NativeInt); Procedure WriteExactSizeData(Const Buffer; aSize,aCount : NativeInt);
public public
function Read(var Buffer; Count: Longint): Longint; virtual; function Read(var Buffer; Count: Longint): Longint; virtual;
function Read(Buffer: TBytes; Count: Longint): Longint; overload; function Read(var Buffer: TBytes; Count: Longint): Longint; overload;
function Read(Buffer : TBytes; aOffset, Count: Longint): Longint; overload; function Read( Buffer : TBytes; aOffset, Count: Longint): Longint; overload;
function Write(const Buffer: TBytes; Offset, Count: Longint): Longint; overload; function Write(const Buffer: TBytes; Offset, Count: Longint): Longint; overload;
function Write(const Buffer: TBytes; Count: Longint): Longint; overload; function Write(const Buffer: TBytes; Count: Longint): Longint; overload;
@ -911,7 +911,7 @@ type
function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; virtual; overload; function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; virtual; overload;
function ReadData(Buffer: Pointer; Count: NativeInt): NativeInt; overload; function ReadData(Buffer: Pointer; Count: NativeInt): NativeInt; overload;
function ReadData(const Buffer: TBytes; Count: NativeInt): NativeInt; overload; function ReadData(Buffer: TBytes; Count: NativeInt): NativeInt; overload;
function ReadData(var Buffer: Boolean): NativeInt; overload; function ReadData(var Buffer: Boolean): NativeInt; overload;
function ReadData(var Buffer: Boolean; Count: NativeInt): NativeInt; overload; function ReadData(var Buffer: Boolean; Count: NativeInt): NativeInt; overload;
function ReadData(var Buffer: AnsiChar): NativeInt; overload; function ReadData(var Buffer: AnsiChar): NativeInt; overload;

View File

@ -30,7 +30,7 @@ begin
Result := 0; Result := 0;
end; end;
function TStream.Read(Buffer: TBytes; Count: Longint): Longint; function TStream.Read(var Buffer: TBytes; Count: Longint): Longint;
begin begin
Result:=Read(Buffer,0,Count); Result:=Read(Buffer,0,Count);
end; end;
@ -203,7 +203,7 @@ end;
Result:=Read(Buffer^,Count); Result:=Read(Buffer^,Count);
end; end;
function TStream.ReadData(const Buffer: TBytes; Count: NativeInt): NativeInt; function TStream.ReadData({var} Buffer: TBytes; Count: NativeInt): NativeInt;
begin begin
Result:=Read(Buffer,0,Count); Result:=Read(Buffer,0,Count);
end; end;