mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Update docs
This commit is contained in:
1 parent
11bbda9bb3
commit
c459c17fab
1 file changed
+3
-3
+3
-3
@@ -3885,9 +3885,9 @@ Usage example:
|
|||||||
|
|
||||||
```c
|
```c
|
||||||
struct mg_iobuf io;
|
struct mg_iobuf io;
|
||||||
mg_iobuf_init(&io, 0, 512); // Empty buffer
|
mg_iobuf_init(&io, 0, 16); // Empty buffer
|
||||||
mg_iobuf_add(&io, 0, "hi", 2); // io->len is 2, io->size is 512
|
mg_iobuf_add(&io, 0, "hi", 2); // io->len is 2, io->size is 16
|
||||||
mg_iobuf_del(&io, 0, "hi", 2); // io->len is 0, io->size is still 512
|
mg_iobuf_del(&io, 0, "hi", 2); // io->len is 0, io->size is still 16
|
||||||
```
|
```
|
||||||
|
|
||||||
<img src="images/mg_iobuf_del.svg" alt="Function mg_iobuf_del()" />
|
<img src="images/mg_iobuf_del.svg" alt="Function mg_iobuf_del()" />
|
||||||
|
|||||||
Reference in new issue
Block a user