---
title: 创建指定类型数据空间
description: 创建指定类型的新数据空间。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/userg_hyperio_0120.html"
---

# 创建指定类型数据空间

#### 函数定义

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

hid_t H5Screate(H5S_class_t type)


#### 参数

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


#### 返回值

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