Skip to content

Commit

Permalink
QuickJS: added buffer module.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeioex committed Aug 16, 2024
1 parent 4b81888 commit d1c615e
Show file tree
Hide file tree
Showing 5 changed files with 2,465 additions and 1,017 deletions.
2 changes: 2 additions & 0 deletions src/qjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <njs_unicode.h>
#include <njs_utf8.h>
#include <njs_chb.h>
#include <njs_utils.h>

#if defined(__GNUC__) && (__GNUC__ >= 8)
#pragma GCC diagnostic push
Expand Down Expand Up @@ -43,6 +44,7 @@ JSContext *qjs_new_context(JSRuntime *rt, _Bool eval);


JSValue qjs_buffer_alloc(JSContext *ctx, size_t size);
JSValue qjs_buffer_create(JSContext *ctx, u_char *start, size_t size);
JSValue qjs_buffer_chb_alloc(JSContext *ctx, njs_chb_t *chain);

typedef int (*qjs_buffer_encode_t)(JSContext *ctx, const njs_str_t *src,
Expand Down
Loading

0 comments on commit d1c615e

Please sign in to comment.