mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-13 10:15:00 +00:00
Update docs
This commit is contained in:
+3
-3
@@ -3885,9 +3885,9 @@ Usage example:
|
||||
|
||||
```c
|
||||
struct mg_iobuf io;
|
||||
mg_iobuf_init(&io, 0, 512); // Empty buffer
|
||||
mg_iobuf_add(&io, 0, "hi", 2); // io->len is 2, io->size is 512
|
||||
mg_iobuf_del(&io, 0, "hi", 2); // io->len is 0, io->size is still 512
|
||||
mg_iobuf_init(&io, 0, 16); // Empty buffer
|
||||
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 16
|
||||
```
|
||||
|
||||
<img src="images/mg_iobuf_del.svg" alt="Function mg_iobuf_del()" />
|
||||
|
||||
Reference in New Issue
Block a user