[libbacnet]: bacapp_data_len() + bacnet_tag_number_and_value_decode() (#453)
* Bugfix: bacapp_data_len() + bacnet_tag_number_and_value_decode() * Fix bacnet_tag_number_and_value_decode function. Add read buffer safe functions for opening, closing, context specific tags. Fix bacapp_data_len function changes as indicated by unit testing. * refactor bacapp_data_len --------- Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
committed by
GitHub
parent
28de333b6e
commit
acb3b0f57d
@@ -61,6 +61,13 @@ extern "C" {
|
||||
bool context_specific,
|
||||
uint32_t len_value_type);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_is_opening_tag(uint8_t *apdu, uint32_t apdu_size);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_is_closing_tag(uint8_t *apdu, uint32_t apdu_size);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_is_context_specific(uint8_t *apdu, uint32_t apdu_size);
|
||||
|
||||
/* from clause 20.2.1.3.2 Constructed Data */
|
||||
/* returns the number of apdu bytes consumed */
|
||||
BACNET_STACK_EXPORT
|
||||
|
||||
Reference in New Issue
Block a user