Added BACnet Octet String API.

This commit is contained in:
skarg
2005-12-17 22:14:01 +00:00
parent 89da29480e
commit 1181201f4e
2 changed files with 197 additions and 0 deletions
+21
View File
@@ -92,6 +92,27 @@ bool characterstring_truncate(
size_t characterstring_value(BACNET_CHARACTER_STRING *char_string, char *value);
size_t characterstring_length(BACNET_CHARACTER_STRING *char_string);
/* returns false if the string exceeds capacity
initialize by using length=0 */
bool octetstring_init(
BACNET_OCTET_STRING *octet_string,
uint8_t *value,
size_t length);
/* returns false if the string exceeds capacity */
bool octetstring_append(
BACNET_OCTET_STRING *octet_string,
uint8_t *value,
size_t length);
/* This function sets a new length without changing the value.
If length exceeds capacity, no modification happens and
function returns false. */
bool octetstring_truncate(
BACNET_OCTET_STRING *octet_string,
size_t length);
/* returns the length. Returns the value in parameter. */
size_t octetstring_value(BACNET_OCTET_STRING *octet_string, uint8_t *value);
size_t octetstring_length(BACNET_OCTET_STRING *octet_string);
#ifdef __cplusplus
}
#endif /* __cplusplus */