API:System.Classes.TStreamReader.ReadBlock
Delphi
function ReadBlock(var Buffer: TCharArray; Index, Count: Integer): Integer; override;
C++
virtual int __fastcall ReadBlock(System::DynamicArray<System::WideChar> &Buffer, int Index, int Count);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStreamReader |
Description
Read block of characters. {{#multireplace:System.Classes.TStreamReader.ReadBlock|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Classes.TTextReader.ReadBlock|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Classes.TTextReader.ReadBlock|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Read block of characters.
ReadBlock reads a block of at most Count characters to Buffer, starting at Index.
This method is functionally identical to the Microsoft .NET method TextReader.ReadBlock.