Soap.InvokeRegistry.TInvContext.AllocServerData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AllocServerData(const MD: TIntfMethEntry);

C++

void __fastcall AllocServerData(const Soap::Intfinfo::TIntfMethEntry &MD);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TInvContext

Description

Allocates memory for the parameters and result values of a specified method and sets up the parameter and result pointers.

AllocServerData suballocates the memory that the SetMethodInfo method allocates so that it can represent the parameters and return value of a method. It looks up the types of each parameter and of the return type for the method, allocates memory for their values using the AllocData method, and stores the pointers to that memory by calling the SetParamPointer and SetResultPointer methods.

MD is a description of the method, including its type, calling convention, and parameter signature.

Note: AllocServerData must come after a call to SetMethodInfo so that the pool of memory is available. After calling AllocServerData, an application can call GetParamPointer and GetResultPointer to obtain pointers to the memory allocated for each parameter and for the return value of the method.

See Also