From 94c97945612af5856cc631c2fb53904dbd53be3a Mon Sep 17 00:00:00 2001 From: mtf Date: Thu, 10 Feb 2022 20:26:43 +0800 Subject: [PATCH] codestyle Signed-off-by: mtf --- common/common/inc/tlv_wrapper.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/common/inc/tlv_wrapper.h b/common/common/inc/tlv_wrapper.h index 23666ce..4de6ee2 100644 --- a/common/common/inc/tlv_wrapper.h +++ b/common/common/inc/tlv_wrapper.h @@ -24,10 +24,10 @@ #define MAX_BUFFER_SIZE 512000 #define TLV_HEADER_LEN (sizeof(int32_t) + sizeof(uint32_t)) -int32_t SerializeTlvWrapper(const TlvListNode *head, uint8_t*buffer, +int32_t SerializeTlvWrapper(const TlvListNode *head, uint8_t *buffer, uint32_t maxSize, uint32_t *contentSize); -int32_t ParseTlvWrapper(const uint8_t*buffer, uint32_t bufferSize, TlvListNode *head); +int32_t ParseTlvWrapper(const uint8_t *buffer, uint32_t bufferSize, TlvListNode *head); int32_t ParseGetHeadTag(const TlvListNode *node, int32_t *tag); int32_t ParseUint64Para(TlvListNode *node, int32_t msgType, uint64_t *retVal); @@ -44,10 +44,10 @@ int32_t GetInt32Para(TlvListNode *head, int32_t msgType, int32_t *retVal); Buffer *GetBuffPara(TlvListNode *head, int32_t msgType); int32_t GetUint8Para(TlvListNode *head, int32_t msgType, uint8_t *retVal); -int32_t TlvAppendByte(TlvListNode *head, int32_t type, const uint8_t*value, uint32_t length); +int32_t TlvAppendByte(TlvListNode *head, int32_t type, const uint8_t *value, uint32_t length); int32_t TlvAppendShort(TlvListNode *head, int32_t type, short value); int32_t TlvAppendInt(TlvListNode *head, int32_t type, uint32_t value); int32_t TlvAppendLong(TlvListNode *head, int32_t type, uint64_t value); -int32_t TlvAppendObject(TlvListNode *head, int32_t type, const uint8_t*buffer, uint32_t length); +int32_t TlvAppendObject(TlvListNode *head, int32_t type, const uint8_t *buffer, uint32_t length); #endif // TLV_WRAPPER_H \ No newline at end of file -- Gitee