Do ArrayBuffers have a maximum length?

前端 未结 4 1062
失恋的感觉
失恋的感觉 2020-12-11 18:14

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?

4条回答
  •  一整个雨季
    2020-12-11 19:08

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

    According to the specification :

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

提交回复
热议问题