Path: blob/main/files/en-us/webassembly/reference/memory/grow/index.md
6529 views
------{{WebAssemblySidebar}}
The grow instruction, increases the size of the memory instance by a specified number of pages, each page is sized 64KiB.
The grow instruction returns previous size of memory, in pages, if the operation was successful, and returns -1 if the operation failed.
{{EmbedInteractiveExample("pages/wat/grow.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
memory.grow | 0x40 |