mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
IOB: Add macro to get the start of data
This commit is contained in:
@@ -56,7 +56,8 @@
|
||||
|
||||
/* IOB helpers */
|
||||
|
||||
#define IOB_FREESPACE(n) (CONFIG_IOB_BUFSIZE - (n)->io_len - (n)->io_offset)
|
||||
#define IOB_DATA(p) (&(p)-io_data[(p)->io_offset])
|
||||
#define IOB_FREESPACE(p) (CONFIG_IOB_BUFSIZE - (p)->io_len - (p)->io_offset)
|
||||
|
||||
/* Queue helpers */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user