BACnetEncodeAsn1StandardProperty (FUN)ΒΆ

FUNCTION BACnetEncodeAsn1StandardProperty : IEC_BACNET_STATUS

Encodes the given property contents structure into an BACnet ASN1 encoded data type.

Encodes the given property contents structure into an BACnet ASN1 encoded data type. If the given property contents structure is invalid or the buffer for the encoding is not large enough an error will be returned.

Return: IEC_BACNET_STATUS

InOut:

Scope

Name

Type

Comment

Return

BACnetEncodeAsn1StandardProperty

IEC_BACNET_STATUS

Input

pPropCont

POINTER TO IEC_BACNET_PROPERTY_CONTENTS

The pointer to an filled property contents buffer which shall be encoded into ASN1.

pBuffer

POINTER TO IEC_BACNET_BYTE

The pointer to the buffer which stores the ASN1 encoded data.

nBufferSize

IEC_BACNET_UINT

The size of the buffer in which the ASN1 encoded data will be stored.

pEncodedSize

POINTER TO IEC_BACNET_UINT

The pointer to an unsigned integer in which the length from the ASN1 encoded data will be stored.