summaryrefslogtreecommitdiff
path: root/src/ops.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-03 20:51:20 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-04 00:25:55 -0400
commit51dc46eff4a122543f4a290c00fa29e3b272f70f (patch)
tree461f7b69ed6aee28ea0f4fd0560284d76f511feb /src/ops.rs
parentd38c4e0ff1696e101c0533247c2c9375a2678b0c (diff)
Rename msg_from_js() to dispatch().
Diffstat (limited to 'src/ops.rs')
-rw-r--r--src/ops.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ops.rs b/src/ops.rs
index 7ef34cb57..baa8a2a0b 100644
--- a/src/ops.rs
+++ b/src/ops.rs
@@ -50,7 +50,11 @@ fn empty_buf() -> Buf {
Box::new([])
}
-pub fn msg_from_js(
+/// Processes raw messages from JavaScript.
+/// This functions invoked every time libdeno.send() is called.
+/// control corresponds to the first argument of libdeno.send().
+/// data corresponds to the second argument of libdeno.send().
+pub fn dispatch(
isolate: &mut Isolate,
control: &[u8],
data: &'static mut [u8],