format
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
** @{
|
** @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "quickjs.h"
|
typedef struct JSContext JSContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** An HTTP server instance.
|
** An HTTP server instance.
|
||||||
|
@ -500,8 +500,7 @@ void tf_util_document_settings(const char* line_prefix)
|
|||||||
JSValue tf_util_new_uint8_array(JSContext* context, const uint8_t* data, size_t size)
|
JSValue tf_util_new_uint8_array(JSContext* context, const uint8_t* data, size_t size)
|
||||||
{
|
{
|
||||||
JSValue array_buffer = JS_NewArrayBufferCopy(context, data, size);
|
JSValue array_buffer = JS_NewArrayBufferCopy(context, data, size);
|
||||||
JSValue args[] =
|
JSValue args[] = {
|
||||||
{
|
|
||||||
array_buffer,
|
array_buffer,
|
||||||
JS_NewInt64(context, 0),
|
JS_NewInt64(context, 0),
|
||||||
JS_NewInt64(context, size),
|
JS_NewInt64(context, size),
|
||||||
|
Reference in New Issue
Block a user