mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
IOB: Add iob_clone()
This commit is contained in:
@@ -157,6 +157,16 @@ int iob_copyin(FAR struct iob_s *iob, FAR const uint8_t *src,
|
||||
int iob_copyout(FAR uint8_t *dest, FAR const struct iob_s *iob,
|
||||
unsigned int len, unsigned int offset);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: iob_clone
|
||||
*
|
||||
* Description:
|
||||
* Duplicate (and pack) the data in iob1 in iob2. iob2 must be empty.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int iob_clone(FAR struct iob_s *iob1, FAR struct iob_s *iob2);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: iob_concat
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user