完善文档

This commit is contained in:
jim 2019-12-18 21:20:50 +08:00 committed by GitHub
parent c021477d5c
commit b66d83dddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ typedef struct _wbuffer_t {
/**
* @property {uint8_t*} data
* @annotation ["readable"]
*
*
*/
uint8_t* data;
/**
@ -73,13 +73,13 @@ typedef struct _wbuffer_t {
/**
* @property {uint32_t} capacity
* @annotation ["readable"]
*
*
*/
uint32_t capacity;
/**
* @property {bool_t} extendable
* @annotation ["readable"]
*
*
*/
bool_t extendable;
} wbuffer_t;
@ -98,7 +98,7 @@ wbuffer_t* wbuffer_init(wbuffer_t* wbuffer, uint8_t* data, uint32_t capacity);
/**
* @method wbuffer_init_extendable
* wbuffer对象buffer使wbuffer\_deinit释放资源
* wbuffer对象使wbuffer\_deinit释放资源
*
* @annotation ["constructor"]
* @param {wbuffer_t*} wbuffer wbuffer对象
@ -109,9 +109,9 @@ wbuffer_t* wbuffer_init_extendable(wbuffer_t* wbuffer);
/**
* @method wbuffer_extend_capacity
*
*
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {uint32_t} capacity
* @param {uint32_t} capacity
*
* @return {ret_t} RET_OK表示成功
*/
@ -140,7 +140,7 @@ ret_t wbuffer_skip(wbuffer_t* wbuffer, int32_t delta);
* @method wbuffer_write_uint8
* uint8数据
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {uint8_t} value
* @param {uint8_t} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -150,7 +150,7 @@ ret_t wbuffer_write_uint8(wbuffer_t* wbuffer, uint8_t value);
* @method wbuffer_write_uint16
* uint16数据
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {uint16_t} value
* @param {uint16_t} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -160,7 +160,7 @@ ret_t wbuffer_write_uint16(wbuffer_t* wbuffer, uint16_t value);
* @method wbuffer_write_uint32
* uint32数据
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {uint32_t} value
* @param {uint32_t} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -170,7 +170,7 @@ ret_t wbuffer_write_uint32(wbuffer_t* wbuffer, uint32_t value);
* @method wbuffer_write_float
* float数据
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {float_t} value
* @param {float_t} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -180,8 +180,8 @@ ret_t wbuffer_write_float(wbuffer_t* wbuffer, float_t value);
* @method wbuffer_write_binary
*
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {void*} data
* @param {uint32_t} size
* @param {void*} data
* @param {uint32_t} size
*
* @return {ret_t} RET_OK表示成功
*/
@ -191,7 +191,7 @@ ret_t wbuffer_write_binary(wbuffer_t* wbuffer, const void* data, uint32_t size);
* @method wbuffer_write_string
*
* @param {wbuffer_t*} wbuffer wbuffer对象
* @param {char*} data
* @param {char*} data
*
* @return {ret_t} RET_OK表示成功
*/
@ -220,7 +220,7 @@ typedef struct _rbuffer_t {
/**
* @property {uint8_t*} data
* @annotation ["readable"]
*
*
*/
const uint8_t* data;
/**
@ -232,7 +232,7 @@ typedef struct _rbuffer_t {
/**
* @property {uint32_t} capacity
* @annotation ["readable"]
*
*
*/
uint32_t capacity;
} rbuffer_t;
@ -272,7 +272,7 @@ ret_t rbuffer_skip(rbuffer_t* rbuffer, int32_t offset);
* @method rbuffer_read_uint8
* uint8数据
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {uint8_t*} value
* @param {uint8_t*} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -292,7 +292,7 @@ ret_t rbuffer_read_uint16(rbuffer_t* rbuffer, uint16_t* value);
* @method rbuffer_read_uint32
* uint32数据
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {uint32_t*} value
* @param {uint32_t*} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -302,7 +302,7 @@ ret_t rbuffer_read_uint32(rbuffer_t* rbuffer, uint32_t* value);
* @method rbuffer_read_float
* float数据
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {float_t*} value
* @param {float_t*} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -312,7 +312,7 @@ ret_t rbuffer_read_float(rbuffer_t* rbuffer, float_t* value);
* @method rbuffer_read_binary
*
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {void*} data
* @param {void*} data
* @param {uint32_t} size
*
* @return {ret_t} RET_OK表示成功
@ -323,7 +323,7 @@ ret_t rbuffer_read_binary(rbuffer_t* rbuffer, void* data, uint32_t size);
* @method rbuffer_read_string
*
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {char**} str
* @param {char**} str
*
* @return {ret_t} RET_OK表示成功
*/
@ -333,7 +333,7 @@ ret_t rbuffer_read_string(rbuffer_t* rbuffer, const char** str);
* @method rbuffer_peek_uint8
* uint8数据cursor的位置
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {uint8_t*} value
* @param {uint8_t*} value
*
* @return {ret_t} RET_OK表示成功
*/
@ -343,7 +343,7 @@ ret_t rbuffer_peek_uint8(rbuffer_t* rbuffer, uint8_t* value);
* @method rbuffer_peek_uint16
* uint16数据cursor的位置
* @param {rbuffer_t*} rbuffer rbuffer对象
* @param {uint16_t*} value
* @param {uint16_t*} value
*
* @return {ret_t} RET_OK表示成功
*/