From d38ccfc6dcb8643daa4f9e695d47a79cf068f90e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 27 Sep 2018 17:33:10 -0400 Subject: Support zero-copy data in libdeno.send(). (#838) This is a large API refactor of deno.h which replaces deno_send() and deno_set_response() with deno_respond(). It also adds a req_id parameter to the deno_recv_cb. Make writeFile/writeFileSync use it. --- js/libdeno.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/libdeno.ts') diff --git a/js/libdeno.ts b/js/libdeno.ts index 8445a2d2b..afd6f1aec 100644 --- a/js/libdeno.ts +++ b/js/libdeno.ts @@ -6,7 +6,7 @@ type MessageCallback = (msg: Uint8Array) => void; interface Libdeno { recv(cb: MessageCallback): void; - send(msg: ArrayBufferView): null | Uint8Array; + send(control: ArrayBufferView, data?: ArrayBufferView): null | Uint8Array; print(x: string, isErr?: boolean): void; -- cgit v1.2.3