PacketPool (FB)ΒΆ

FUNCTION_BLOCK PUBLIC FINAL PacketPool EXTENDS _Disposable IMPLEMENTS IPacketPool

Provides a pool of IPacket instances.
Use the GetPacket method to get a new instance.
InOut:

Scope

Name

Type

Initial

Comment

Input

udiPacketSize

UDINT

16#FFFFFFFF

udiInitialCapacity

UDINT

pbyPool

POINTER TO BYTE

The optional memory space for the packet 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: