Skip to content

Commit

Permalink
Merge pull request WebAssembly#43 from WebAssembly/jgravelle-google-p…
Browse files Browse the repository at this point in the history
…atch-1

Remove utf8-cstr binding
  • Loading branch information
lukewagner authored Jul 4, 2019
2 parents d5918ba + c4cb0a7 commit 8c7213d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion proposals/webidl-bindings/Explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ produced). A sample list of outgoing binding operators:
| :--- | :--- | :--- | :--- |
| **as** | webidl‑type<br>idx | | Takes the `idx`'th wasm value of the source tuple and produces a Web IDL value of `webidl-type`, allowing only trivial conversions (like `i32` to [`long`] or `anyref` to [`any`]). |
| **utf8‑str** | webidl‑type<br>off‑idx<br>len‑idx | | Takes the `off-idx`'th and `len-idx`'th wasm values of the source tuple, which must both be `i32`s, as the offset and length, resp., of a UTF-8 string in linear memory and decodes a `webidl-type`, which must be one of [`DOMString`] or [`USVString`], as specified by [`TextDecoder`]. |
| **utf8‑cstr** | webidl‑type<br>off‑idx | | Like `utf8-str`, but instead of length being explicitly supplied as a wasm value in the source tuple, the length is found by decoding up to the first null code point. |
| **i32‑to‑enum** | webidl‑type<br>val‑idx | | Takes the `val-idx`'th wasm value of the source tuple, which must be an `i32`, as an index into the list of strings specified by `webidl-type`, which must be an [Enumeration]. |
| **view** | webidl‑type<br>off‑idx<br>len‑idx | | Takes the `off-idx`'th and `len-idx`'th wasm values of the source tuple, which must both be `i32`s, as the offset and length, resp., of a new `webidl-type`, which must be a [Typed Array View], making a *view* of the bytes. |
| **copy** | webidl‑type<br>off‑idx<br>len‑idx | | Takes the `off-idx`'th and `len-idx`'th wasm values of the source tuple, which must both be `i32`s, as the offset and length, resp., of a new `webidl-type`, which must be a [`BufferSource`] or [`ByteString`], making a *copy* of the bytes. |
Expand Down

0 comments on commit 8c7213d

Please sign in to comment.