mirror of
https://github.com/denoland/deno.git
synced 2025-07-31 09:05:19 +00:00
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.
This commit is contained in:
parent
bf93ca54dd
commit
d38ccfc6dc
12 changed files with 379 additions and 190 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue