GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript ArrayBuffer resize() Method - GeeksforGeeks JavaScript ArrayBuffer resize() MethodLast Updated : 23 Jul, 2025 JavaScript resize() method in ArrayBuffer is used to increase or decrease the size of ArrayBuffer in JavaScript. This method specifies the change in length in bytes and the specified length cannot be greater than the maxByteLength property of the array Buffer. Syntax: resize(len) Parameter: This method takes only a single parameter.
Return Value: An undefined value. Example 1: This method increases the size of ArrayBuffer which can be confirmed using the byteLength() method.
Output: The increased size can never be greater than the maximum byte length the of the Array Buffer 12 18 Example 2: This example shrinks the size of ArrayBuffer. We will use the byteLength() method to decrease the size.
Output: 24 18 Supported Browsers:
We have a complete list of ArrayBuffer methods and properties, to check Please go through the JavaScript ArrayBuffer Reference article. Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |