首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

WebAssembly.memory.prototype

这是一项 实验技术

在使用此产品之前,请仔细检查浏览器兼容性表。

WebAssembly.Memory.prototype该属性表示WebAssembly.Memory()构造函数的原型。

| WebAssembly.Memory.prototype的属性特性 |

|:----|

| Writable | no |

| Enumerable | no |

| Configurable | no |

描述

所有WebAssembly.Memory实例都继承自Memory.prototypeWebAssembly.Memory()构造函数的原型对象可以被修改以影响所有WebAssembly.Memory实例。

属性

Memory.prototype.constructor返回创建此对象实例的函数。默认情况下这是WebAssembly.Memory()构造函数。Memory.prototype.buffer访问器属性,返回内存中包含的缓冲区。

方法

Memory.prototype.grow()通过指定数量的WebAssembly页面(每个页面大小为64KB)增加内存实例的大小。

规范

Specification

Status

Comment

Web Assembly JavaScript APIThe definition of 'Memory' in that specification.

Draft

Initial draft definition.

浏览器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

57

16

522

No

44

11

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

57

57

(Yes)1

522

No

?

11

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com