SegmentPool (FB)ΒΆ

FUNCTION_BLOCK PUBLIC FINAL SegmentPool EXTENDS MBM.Disposable IMPLEMENTS ISegmentPool

Provides a pool of ISegment instances.
Use the GetSegment method to get a new instance.
InOut:

Scope

Name

Type

Initial

Comment

Input Const

udiSegmentSize

UDINT

UDINT#16#FFFFFFFF

udiInitialCapacity

UDINT

pbyPool

POINTER TO BYTE

The optinonal memory space for the segment pool.
pbyPool = 0 => Memory is allocated from Heap
pbyPool <> 0 => The related static Memory of size udiPoolSize is used.

udiPoolSize

UDINT

The size of the memory area referenced by pbyPool

usiExtensionFactor

USINT

Methods:

Structure: