A linked buffer structure for use with TCP.

A single otLinkedBuffer structure references an array of bytes in memory, via mData and mLength. The mNext field is used to form a chain of otLinkedBuffer structures.

Public Attributes#

Pointer to the next linked buffer in the chain, or NULL if it is the end.

const uint8_t *

Pointer to data referenced by this linked buffer.

size_t

Length of this linked buffer (number of bytes).

Public Attribute Documentation#

mNext#

struct otLinkedBuffer* otLinkedBuffer::mNext

Pointer to the next linked buffer in the chain, or NULL if it is the end.


Definition at line 62 of file include/openthread/tcp.h

mData#

const uint8_t* otLinkedBuffer::mData

Pointer to data referenced by this linked buffer.


Definition at line 63 of file include/openthread/tcp.h

mLength#

size_t otLinkedBuffer::mLength

Length of this linked buffer (number of bytes).


Definition at line 64 of file include/openthread/tcp.h