UaServer_TurboStack


Functions

UaServer_TurboStackUaServer_TurboStack_Create (OpcUa_UInt size)
 Creates and initializes a UaServer_TurboStack of requested size.
OpcUa_Void UaServer_TurboStack_Initialize (UaServer_TurboStack *pStack, OpcUa_UInt size)
 Initializes the UaServer_TurboStack structure.
OpcUa_Void UaServer_TurboStack_Clear (UaServer_TurboStack *pStack)
 Clears the UaServer_TurboStack.
OpcUa_Void UaServer_TurboStack_Delete (UaServer_TurboStack *pStack)
 This operation frees the UaServer_TurboStack and it's data.
OpcUa_UInt UaServer_TurboStack_GetSize (UaServer_TurboStack *pStack)
 Returns the actual size of the stack.
OpcUa_Int UaServer_TurboStack_Push (UaServer_TurboStack *pStack, OpcUa_Void *pData)
 Pushes an element onto the stack.
OpcUa_Void * UaServer_TurboStack_Pop (UaServer_TurboStack *pStack)
 Pops an element from stack.

Function Documentation

OpcUa_Void UaServer_TurboStack_Clear ( UaServer_TurboStack pStack  ) 

Clears the UaServer_TurboStack.

Clears the TurboStack.

UaServer_TurboStack* UaServer_TurboStack_Create ( OpcUa_UInt  size  ) 

Creates and initializes a UaServer_TurboStack of requested size.

Creates and initializes a TurboStack of requested size.

Parameters:
size number of elements that can be stored in this list-
Returns:
Pointer to created list or 0 if malloc fails.

OpcUa_Void UaServer_TurboStack_Delete ( UaServer_TurboStack pStack  ) 

This operation frees the UaServer_TurboStack and it's data.

This operation frees the TurboStack and it's data.

OpcUa_UInt UaServer_TurboStack_GetSize ( UaServer_TurboStack pStack  ) 

Returns the actual size of the stack.

OpcUa_Void UaServer_TurboStack_Initialize ( UaServer_TurboStack pStack,
OpcUa_UInt  size 
)

Initializes the UaServer_TurboStack structure.

Initializes the TurboStack structure.

This operation expects, that the memory block containg the structure is big enough to hold also size elements of data.

OpcUa_Void* UaServer_TurboStack_Pop ( UaServer_TurboStack pStack  ) 

Pops an element from stack.

Parameters:
pStack pointer the the stack.
Returns:
popped data or 0 if stack is empty.

OpcUa_Int UaServer_TurboStack_Push ( UaServer_TurboStack pStack,
OpcUa_Void *  pData 
)

Pushes an element onto the stack.

Parameters:
pStack pointer the the stack.
pData data to push
Returns:
0 on success, -1 if stack is full