(size)
| 670 | |
| 671 | // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready |
| 672 | function getMemory(size) { |
| 673 | if (!staticSealed) return staticAlloc(size); |
| 674 | if (!runtimeInitialized) return dynamicAlloc(size); |
| 675 | return _malloc(size); |
| 676 | } |
| 677 | Module["getMemory"] = getMemory; |
| 678 | |
| 679 | /** @type {function(number, number=)} */ |
nothing calls this directly
no test coverage detected
searching dependent graphs…