CharBufferString (FB)
FUNCTION_BLOCK CharBufferString
This function block encapsulates the data of a string based on a byte array, i.e. contains the CharBufferPtr variable pointing to the buffer and the information about the type of (i.e. one-byte string or two-byte string)
- InOut:
Scope
Name
Type
Comment
Input
m_uiBufferSizeUINTThe size of the buffer (in bytes), where the string is stored.
m_cbpBufferThe buffer, where the string is stored this instance represents
m_Type__SYSTEM.TYPE_CLASSA __SYSTEM.TYPE_CLASS value indicating type of the string
m_AsStringPOINTER TO STRING(255)
Two additional pointers to the buffer used for easier debugging. In the monitoring view the corresponding pointer shows the current value of the buffer as (w)string.
m_AsWStringPOINTER TO WSTRING(255)
m_bAllocatedBOOLFlag indicating, whether the memory for storing the string was allocated dynamically and has to be freed later
Properties:
Capacity
Characters
Length
StringType
Methods:
CharAt
CharAtEquals
Copy
CopyFrom
CopyFrom2
Delete
FB_Exit
FB_Init
Find
FindFrom
FromString
Init
Initialize
Insert
Mid
Replace
Structure:
CharBufferString.Capacity(PROP)CharBufferString.CharAt(METH)CharBufferString.CharAtEquals(METH)CharBufferString.Characters(PROP)CharBufferString.Copy(METH)CharBufferString.CopyFrom(METH)CharBufferString.CopyFrom2(METH)CharBufferString.Delete(METH)CharBufferString.FB_Exit(METH)CharBufferString.FB_Init(METH)CharBufferString.Find(METH)CharBufferString.FindFrom(METH)CharBufferString.FromString(METH)CharBufferString.Init(METH)CharBufferString.Initialize(METH)CharBufferString.Insert(METH)CharBufferString.Length(PROP)CharBufferString.Mid(METH)CharBufferString.Replace(METH)CharBufferString.StringType(PROP)