BACnetCopyPropertyContents (FUN)ΒΆ
FUNCTION BACnetCopyPropertyContents : IEC_BACNET_STATUS
Copies a property contents buffer.
Some usefull function for copying property contents buffer. To use this function all the pointers inside data structures in source property contents needs to reside within the given buffer size. If you get an property contents from stack API (hook or callback) this is guaranteed.n If pointers are not arranged this way the function will return an error. Memory for the destination contents will be allocated if it is initialized with pointer NULL and size 0 by the user application. In this case it has to be freed with a call to ::BACnetFreeStackAllocatedMemory after use.
Return: IEC_BACNET_STATUS
- InOut:
Scope
Name
Type
Comment
Return
BACnetCopyPropertyContents
Input
pDest
POINTER TO IEC_BACNET_PROPERTY_CONTENTS
A pointer to the destination property contents structure.
pSource
POINTER TO IEC_BACNET_PROPERTY_CONTENTS
A pointer to the source property contents structure which is to copy.
bCopyRawBufferToo
If set to True the RAW-Buffer of the source property contents buffer which holds the ASN1 encoding of the data will also be copied into the destination contents.