---
title: 创建指定类型数据空间
description: "创建指定类型的新数据空间。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/userg_hyperio_0120.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/userg_hyperio_0120.html
indexId: a7d7fc47aa3e9a57c821071dcc8d957f6eec271d572bf8c8cbbcf8746902ecd164
---
# 创建指定类型数据空间

#### 函数定义

创建指定类型的新数据空间。

hid_t H5Screate(H5S_class_t type)


#### 参数

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| type | 要创建的数据空间类型。 | 非空 | 输入 |


#### 返回值

- 成功：返回数据空间标识符。
- 失败：返回负值。
