# Class: Memory (/pixi-vn-live2d/core/namespaces/Live2DCubismCore/classes/Memory)



Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:488

Memory functions.

## Methods [#methods]

### initializeAmountOfMemory() [#initializeamountofmemory]

\> `static` **initializeAmountOfMemory**(`size`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:498

HACK:
Extend memory size allocated during module initialization.
If the specified size is less than or equal to 16777216(byte), the default of 16 MB is allocated.

#### Parameters [#parameters]

##### size [#size]

`number`

allocated memory size \[byte(s)]

#### Returns [#returns]

`void`

#### See [#see]

[https://github.com/emscripten-core/emscripten/blob/main/src/settings.js#L161](https://github.com/emscripten-core/emscripten/blob/main/src/settings.js#L161)
