GetTypeSize(PTypeInfo) Method

Returns the size that is needed in order to pass an argument of the given type.

Namespace: Spring
function GetTypeSize(typeInfo: PTypeInfo): Integer;

Parameters

typeInfo
Type: System.Void

Return Value

Type: Integer

 

While in most cases the result is equal to the actual type size for short strings it always returns SizeOf(Pointer) as short strings are always passed as pointer.