[Overview][Types][Classes][Index] Reference for unit 'LCLMemManager' (#lcl)

TExtMemoryStream.Realloc

Reallocates memory for the stream using the specified capacity.

Declaration

Source position: lclmemmanager.pas line 97

protected function TExtMemoryStream.Realloc(

  var NewCapacity: TStreamSizeType

):Pointer; override;

Arguments

NewCapacity

  

New capacity requested in the method.

Function result

Pointer to the newly allocated memory for the stream.

Description

Realloc is an overridden method in TExtMemoryStream. It ensures that the new Capacity is at least 25% larger than the existing Capacity. Realloc calls the inherited method to re-allocate memory to the size needed.

See also

TExtMemoryStream.Capacity

  

Size of the allocated memory for the stream.

TMemoryStream


Version 3.2 Generated 2024-02-25 Home