blob: e133ef1385900f57d5c9b67f1861231e710e9d4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef NVIM_OS_WSTREAM_H
#define NVIM_OS_WSTREAM_H
#include <stdint.h>
#include <stdbool.h>
#include <uv.h>
#include "nvim/os/wstream_defs.h"
WStream * wstream_new(size_t maxmem);
void wstream_free(WStream *wstream);
void wstream_set_stream(WStream *wstream, uv_stream_t *stream);
bool wstream_write(WStream *wstream, WBuffer *buffer);
WBuffer *wstream_new_buffer(char *data, size_t size, bool copy);
#endif // NVIM_OS_WSTREAM_H
|