> ## 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.

# PFMemoryHooks

> 封裝記憶體攔截的結構。

封裝記憶體攔截的結構。

## 語法

```cpp theme={null}
typedef struct PFMemoryHooks {  
    PFMemAllocFunction* alloc;  
    PFMemFreeFunction* free;  
} PFMemoryHooks;  
```

### 成員

**`alloc`**   PFMemAllocFunction\*

自訂配置攔截。

**`free`**   PFMemFreeFunction\*

自訂釋放攔截。

## 備註

兩個攔截必須同時設定。

## 需求

**標頭：** PFPlatform.h

## 另請參閱

[PFPlatform 成員](/zh-TW/services/playfab/api-references/c/pfplatform/pfplatform_members)


## Related topics

- [PFMemSetFunctions](/zh-TW/services/playfab/api-references/c/pfplatform/functions/pfmemsetfunctions.md)
- [服務 C API 概觀 - PFPlatform.h](/zh-TW/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [PFMemGetFunctions](/zh-TW/services/playfab/api-references/c/pfplatform/functions/pfmemgetfunctions.md)
- [PlayFab Unified SDK 中的記憶體管理](/zh-TW/services/playfab/sdks/unified-sdk/memory-management.md)
- [PlayFab SDK 產品](/zh-TW/services/playfab/sdks/sdk-products.md)
