2016-05-12 04:36:12 +08:00
|
|
|
---
|
|
|
|
title: "Memory Buffers"
|
|
|
|
symbol_kind: "intro"
|
|
|
|
decl_name: "mbuf.h"
|
2016-05-26 18:30:13 +08:00
|
|
|
items:
|
|
|
|
- { type: file, name: mbuf_init.md }
|
|
|
|
- { type: file, name: mbuf_free.md }
|
|
|
|
- { type: file, name: mbuf_append.md }
|
|
|
|
- { type: file, name: mbuf_insert.md }
|
|
|
|
- { type: file, name: mbuf_remove.md }
|
|
|
|
- { type: file, name: mbuf_resize.md }
|
|
|
|
- { type: file, name: mbuf_trim.md }
|
|
|
|
- { type: file, name: struct_mbuf.md }
|
2016-05-12 04:36:12 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
Mbufs are mutable/growing memory buffers, like C++ strings.
|
2016-07-21 22:58:31 +08:00
|
|
|
Mbuf can append data to the end of a buffer or insert data into arbitrary
|
2016-05-12 04:36:12 +08:00
|
|
|
position in the middle of a buffer. The buffer grows automatically when
|
|
|
|
needed.
|
|
|
|
|