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

# PFLocalStorageHooks

> ストレージ フックをカプセル化する構造体。

ストレージ フックをカプセル化する構造体。

## 構文

```cpp theme={null}
typedef struct PFLocalStorageHooks {  
    XTaskQueueHandle queueHandle;  
    PFPlatformLocalStorageReadAsyncHandler* read;  
    PFPlatformLocalStorageWriteAsyncHandler* write;  
    PFPlatformLocalStorageClearAsyncHandler* clear;  
    void* context;  
} PFLocalStorageHooks;  
```

### メンバー

**`queueHandle`**   XTaskQueueHandle<br />*may be nullptr*

(省略可能) フックを呼び出すキュー。指定されていない場合、コールバックは PFInitialize に提供されたバックグラウンド キューで呼び出されます。

**`read`**   PFPlatformLocalStorageReadAsyncHandler\*

カスタム読み取りフック。

**`write`**   PFPlatformLocalStorageWriteAsyncHandler\*

カスタム書き込みフック。

**`clear`**   PFPlatformLocalStorageClearAsyncHandler\*

カスタム クリア フック。

**`context`**   void\*<br />*may be nullptr*

(省略可能) ストレージ フックに渡されるクライアント コンテキスト。

## 解説

3 つのハンドラーはすべて同時に設定する必要があります。

## 要件

**ヘッダー:** PFPlatform.h

## 関連項目

[PFPlatform のメンバー](/services/playfab/api-references/c/pfplatform/pfplatform_members)


## Related topics

- [PFPlatformLocalStorageSetHandlers](/ja-jp/services/playfab/api-references/c/pfplatform/functions/pfplatformlocalstoragesethandlers.md)
- [サービス C API の概要 - PFPlatform.h](/ja-jp/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [XPersistentLocalStorage](/ja-jp/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members.md)
- [XMEM_ALLOCATION_HOOKS](/ja-jp/reference/system/xmem/structs/xmem_allocation_hooks.md)
- [PFMemoryHooks](/ja-jp/services/playfab/api-references/c/pfplatform/structs/pfmemoryhooks.md)
