Zero-copy access to the underlying `ArrayBuffer`. Cloning the handle is cheap (it's a JS-refcount bump); no bytes are copied. Useful for consumers that want to pass the Blob body on to hyper via `ObjectBytes::DataView` without the `get_bytes()` allocation.
(&self)
| 209 | }; |
| 210 | let data = shared_array_buffer_view(ctx, &self.data, start, end.saturating_sub(start))?; |
| 211 | let mime_type = get_coerced_defined_string(&content_type); |
| 212 | let mime_type = mime_type.map(normalize_type).unwrap_or_default(); |
| 213 | Ok(Blob { mime_type, data }) |
| 214 | } |
| 215 | } |
| 216 |
no test coverage detected