Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since July 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
resizable は ArrayBuffer インスタンスのアクセサープロパティで、この配列バッファーがサイズ変更かどうかを表します。
resizable プロパティはアクセサープロパティであり、設定アクセサー関数が undefined であるためこのプロパティは読み取ることしかできません。この値は、この配列が構築されるときに確定されます。コンストラクターで maxByteLength オプションが設定されていれば resizable は true を返し、そうでなければ false を返します。
この例では、最大 16 バイトの長さにサイズ変更可能な 8 バイトのバッファーを作成し、resizable プロパティを調べて、resizable が true を返す場合にサイズ変更します。
| ECMAScript® 2027 Language Specification # sec-get-arraybuffer.prototype.resizable |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年11月29日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.