IOB: Add iob_clone()

This commit is contained in:
Gregory Nutt
2014-06-05 12:56:00 -06:00
parent d6c1f0e526
commit 7ef0fb1460
3 changed files with 203 additions and 3 deletions
+10
View File
@@ -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
*