> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InitializeWithPageArrays (XBOX One 系列)

> 使用預先配置的系統和 ESRAM 頁碼陣列初始化 **XGMemoryLayoutEngine**。

# XGMemoryLayoutEngine::InitializeWithPageArrays 方法 (XBOX One 系列)

使用預先配置的系統和 ESRAM 頁碼陣列初始化 **XGMemoryLayoutEngine**。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT InitializeWithPageArrays(
         const ULONG_PTR *pSystemPageList,
         UINT32 SystemPageCount,
         const UINT32 *pEsramPageList,
         UINT32 EsramPageCount
)  
```

<a id="ID4EJ" />

### 參數

*pSystemPageList*   \_In\_reads\_(SystemPageCount)\
類型：ULONG\_PTR\*

系統頁面清單。

*SystemPageCount*   \
類型：UINT32

系統頁面數目。

*pEsramPageList*   \_In\_reads\_(EsramPageCount)\
類型：UINT32\*

ESRAM 頁面清單。

*EsramPageCount*   \
類型：UINT32

ESRAM 頁面數目。

<a id="ID4ES" />

### 傳回值

類型：HRESULT

S\_OK、E\_INVALIDARG 或 E\_OUTOFMEMORY。

<a id="requirements" />

## 需求

**標頭：** xgmemory.h

<a id="ID4EWB" />

**支援的平台：** XBOX One 系列

## 另請參閱

[XGMemoryLayoutEngine](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGMemoryLayoutEngine/xgmemorylayoutengine)


## Related topics

- [chat_manager::initialize](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
- [FFTInitializeUnityTable](/zh-TW/reference/audio/xdsp/functions/fftinitializeunitytable.md)
- [XGameStreamingInitialize](/zh-TW/reference/system/xgamestreaming/functions/xgamestreaminginitialize.md)
- [XGameRuntimeInitialize](/zh-TW/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize.md)
- [XGameSaveInitializeProvider](/zh-TW/reference/system/xgamesave/functions/xgamesaveinitializeprovider.md)
