ArrayBuffers是否有最大长度? [英] Do ArrayBuffers have a maximum length?

查看:450
本文介绍了ArrayBuffers是否有最大长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里有点困惑. ArrayBuffer是否为其分配新的内存区域? 如果是这样,放到上面的安全最大Blob大小是多少?

I little confused here. Do ArrayBuffer allocate a new memory region for it? If so, what would be the safe maximum Blob size to put on it?

推荐答案

那仅取决于您的系统,似乎没有限制.

That only depends on your system and there doesn't seems to be a limit.

根据规范:

如果无法分配所请求的字节数,则为异常 被举起.

If the requested number of bytes could not be allocated an exception is raised.

这篇关于ArrayBuffers是否有最大长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆