Skip to content

TOverridePreallocationCallback

The callback for TPortFactoryPublisher.OverridePreallocatedCallback.

Definition

Unit: Neslib.Iceoryx2.Types

type TOverridePreallocationCallback = reference to function(const ANumberOfPreallocatedSamples: NativeUInt): NativeUInt

Parameters

ANumberOfPreallocatedSamples: NativeUInt : the worst case number of samples that need to be preallocated so that iceoryx2 can guarantee that it never runs out of memory.

Returns

NativeUInt: The override value of preallocated samples. The return value is clamped between 1 and the worst case number of preallocated samples (ANumberOfPreallocatedSamples)