# otLinkedBuffer Struct Reference

# otLinkedBuffer


`#include <openthread/tcp.h>`

A linked buffer structure for use with TCP.

## Summary

A single [otLinkedBuffer](https://openthread.io/reference/struct/ot-linked-buffer) structure references an array of bytes in memory, via mData and mLength. The mNext field is used to form a chain of [otLinkedBuffer](https://openthread.io/reference/struct/ot-linked-buffer) structures.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-linked-buffer#structot_linked_buffer_1a26a70994f0bdfef17b4703c4f2a2e31a` | `const uint8_t *` Pointer to data referenced by this linked buffer. |
| `https://openthread.io/reference/struct/ot-linked-buffer#structot_linked_buffer_1a8018e943d43c06e4f2694da074ed4fe7` | `size_t` Length of this linked buffer (number of bytes). |
| `https://openthread.io/reference/struct/ot-linked-buffer#structot_linked_buffer_1a32a167df1ec7a1d92ba483e75cf667cf` | `struct https://openthread.io/reference/struct/ot-linked-buffer *` Pointer to the next linked buffer in the chain, or NULL if it is the end. |

## Public attributes

### mData

```
const uint8_t * otLinkedBuffer::mData
```
Pointer to data referenced by this linked buffer.

### mLength

```
size_t otLinkedBuffer::mLength
```
Length of this linked buffer (number of bytes).

### mNext

```
struct otLinkedBuffer * otLinkedBuffer::mNext
```
Pointer to the next linked buffer in the chain, or NULL if it is the end.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).