diff --git a/docs/README.md b/docs/README.md index b7a1c288..bba22335 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3158,7 +3158,7 @@ struct mg_iobuf { Generic IO buffer. The `size` specifies an allocation size of the data pointed by `buf`, and `len` specifies number of bytes currently stored. - +struct mg_iobuf diagram ### mg\_iobuf\_init() diff --git a/docs/images/mg_iobuf.png b/docs/images/mg_iobuf.png deleted file mode 100644 index 35c50941..00000000 Binary files a/docs/images/mg_iobuf.png and /dev/null differ diff --git a/docs/images/mg_iobuf.svg b/docs/images/mg_iobuf.svg new file mode 100644 index 00000000..afc8a069 --- /dev/null +++ b/docs/images/mg_iobuf.svg @@ -0,0 +1 @@ +struct mg_iobuf { unsigned char *buf; size_t size; size_t len; // Pointer to stored data// Total size available// Current number of bytes}; SOURCE CODEMEMORYbuflensizedatafree space \ No newline at end of file