[PACKET_IO]format api style

This commit is contained in:
liuwentan
2022-08-18 16:26:00 +08:00
parent 90542cec2d
commit 90b359ed40
25 changed files with 1171 additions and 692 deletions

View File

@@ -1,3 +1,16 @@
#pragma once
struct stellar_packet;
#include <stddef.h>
struct stellar_packet;
/**
* @brief get stellar_packet's ctrlzone
* @note ctrlzone's memory is 64 bytes, do not exceed it
*/
char *get_stellar_packet_ctrlzone(struct stellar_packet *p, size_t *ctrlzone_len);
/**
* @brief get stellar_packet's data pointer
*/
char *get_stellar_packet_data(struct stellar_packet *p, size_t *data_len);