Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overloads with endianness parameter to DataView gets and sets #966

Merged
merged 2 commits into from
Oct 15, 2018
Merged

Add overloads with endianness parameter to DataView gets and sets #966

merged 2 commits into from
Oct 15, 2018

Conversation

katis
Copy link
Contributor

@katis katis commented Oct 15, 2018

No description provided.

/// The getFloat64() method gets a signed 32-bit float (float) at the specified
/// byte offset from the start of the DataView.
///
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64)
#[wasm_bindgen(method, js_name = getFloat64)]
pub fn get_float64(this: &DataView, byte_offset: usize) -> f64;

/// The getFloat64() method gets a signed 32-bit float (float) at the specified
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this bit size is lost in the wrong comment

@alexcrichton
Copy link
Contributor

Looks great to me, thanks so much!

@alexcrichton alexcrichton merged commit 79c050a into rustwasm:master Oct 15, 2018
@katis katis mentioned this pull request Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants