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

# GetSerializedSize

> 返回序列化数据库当前内容所需的内存量。

返回序列化数据库当前内容所需的内存量。

## 语法

```cpp theme={null}
SIZE_T GetSerializedSize(
)
```

### 参数

### 返回值

类型：SIZE\_T

此方法返回一个 SIZE\_T 对象，包含所需的字节大小。

## 备注

请参阅 [CreatePipelineLibrary](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public) 的备注和示例。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[ID3D12PipelineLibrary](/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/id3d12pipelinelibrary_public)


## Related topics

- [Serialize](/zh-CN/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/methods/id3d12pipelinelibrary_serialize_public.md)
- [D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER](/zh-CN/reference/graphics/d3d12/structs/d3d12_serialized_raytracing_acceleration_structure_header_public.md)
- [D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER](/zh-CN/reference/graphics/d3d12/structs/d3d12_serialized_data_driver_matching_identifier_public.md)
- [PartyManager::SerializeNetworkDescriptor](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_serializenetworkdescriptor.md)
- [D3D12_SERIALIZED_DATA_TYPE（XBOX Series 主机）](/zh-CN/reference/graphics/d3d12/enums/d3d12_serialized_data_type_public.md)
