-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rename "init" functions back to idiomatic "new" names, removing old versions - rename "thin" functions back to idiomatic names, removing old versions - implement function call/construct - eliminate obsolete neon_runtime::convert module
- Loading branch information
Showing
20 changed files
with
158 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
//! Facilities for working with `v8::ArrayBuffer`s. | ||
use raw::{Isolate, Local, Persistent}; | ||
use raw::{Isolate, Persistent}; | ||
use std::os::raw::c_void; | ||
|
||
// FIXME: rename init_xxx functions back to new_xxx | ||
|
||
extern "C" { | ||
|
||
/// Initializes the `out` argument provided to refer to a newly created `v8::ArrayBuffer` object. | ||
/// Returns `false` if the value couldn't be created. | ||
#[link_name = "Neon_ArrayBuffer_Init"] | ||
pub fn init(out: &Persistent, isolate: *mut Isolate, size: u32) -> bool; | ||
|
||
/// Mutates the `out` argument provided to refer to a newly created `v8::ArrayBuffer` object. | ||
/// Returns `false` if the value couldn't be created. | ||
#[link_name = "Neon_ArrayBuffer_New"] | ||
pub fn new(out: &mut Local, isolate: *mut c_void, size: u32) -> bool; | ||
pub fn new(out: &Persistent, isolate: *mut Isolate, size: u32) -> bool; | ||
|
||
/// Mutates the `base_out` and `size_out` arguments to access the data of a `v8::ArrayBuffer` object. | ||
#[link_name = "Neon_ArrayBuffer_Data"] | ||
pub fn data<'a, 'b>(base_out: &'a mut *mut c_void, size_out: &'a mut usize, obj: &Persistent); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,5 @@ pub mod tag; | |
pub mod module; | ||
pub mod mem; | ||
pub mod fun; | ||
pub mod convert; | ||
pub mod class; | ||
pub mod task; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.