System.Classes.TBytesStream.Realloc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Realloc(var NewCapacity: Longint): Pointer; override;

C++

virtual void * __fastcall Realloc(int &NewCapacity);

Properties

Type Visibility Source Unit Parent
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TBytesStream

Description

Sets the size of the internal buffer to the given capacity.

Realloc is used by the memory stream to resize the internal buffer to the new capacity. Realloc requires a parameter that specifies the new capacity of the internal buffer. A pointer to the resized stream of bytes is returned. If Realloc cannot resize the memory block, an EStreamError error is raised.

See Also