FireDAC.Comp.DataSet.TFDBlobStream.Realloc

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDBlobStream

Delphi

function Realloc(var ANewCapacity: NativeInt): Pointer; override;

C++

virtual void * __fastcall Realloc(System::NativeInt &ANewCapacity);

Description

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

FireDAC.Comp.DataSet.TFDBlobStream.Realloc inherits from System.Classes.TMemoryStream.Realloc. All content below this line refers to System.Classes.TMemoryStream.Realloc.

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 start of the internal buffer is returned. If Realloc cannot resize the memory block, an EStreamError error is raised.

See Also