mongoose/src/iobuf.h

15 lines
369 B
C
Raw Normal View History

2020-12-05 11:26:32 +00:00
#pragma once
#include <stddef.h>
struct mg_iobuf {
unsigned char *buf;
size_t size, len;
};
2021-01-29 12:32:34 +00:00
int mg_iobuf_init(struct mg_iobuf *, size_t);
int mg_iobuf_resize(struct mg_iobuf *, size_t);
2020-12-05 11:26:32 +00:00
void mg_iobuf_free(struct mg_iobuf *);
size_t mg_iobuf_append(struct mg_iobuf *, const void *, size_t, size_t);
2021-08-27 10:25:24 +01:00
size_t mg_iobuf_del(struct mg_iobuf *, size_t ofs, size_t len);