MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at type-hints-typescript 28 lines 664 B view raw
1#ifndef STREAMS_COMPRESSION_H 2#define STREAMS_COMPRESSION_H 3 4#include "types.h" 5#include <stdbool.h> 6 7typedef enum { 8 ZFMT_GZIP = 0, 9 ZFMT_DEFLATE, 10 ZFMT_DEFLATE_RAW, 11 ZFMT_BROTLI, 12} zformat_t; 13 14extern ant_value_t g_cs_proto; 15extern ant_value_t g_ds_proto; 16 17void init_compression_stream_module(void); 18void gc_mark_compression_streams(ant_t *js, void (*mark)(ant_t *, ant_value_t)); 19 20bool cs_is_stream(ant_value_t obj); 21bool ds_is_stream(ant_value_t obj); 22 23ant_value_t cs_stream_readable(ant_value_t obj); 24ant_value_t cs_stream_writable(ant_value_t obj); 25ant_value_t ds_stream_readable(ant_value_t obj); 26ant_value_t ds_stream_writable(ant_value_t obj); 27 28#endif