MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1#ifndef STRING_DECODER_H
2#define STRING_DECODER_H
3
4#include <stdbool.h>
5#include "types.h"
6
7ant_value_t string_decoder_library(ant_t *js);
8ant_value_t string_decoder_create(ant_t *js, ant_value_t encoding);
9
10ant_value_t string_decoder_decode_value(
11 ant_t *js, ant_value_t decoder,
12 ant_value_t chunk, bool flush
13);
14
15ant_value_t string_decoder_decode_bytes(
16 ant_t *js, ant_value_t decoder,
17 const uint8_t *src, size_t len, bool flush
18);
19
20#endif