# zx::resource

## Summary

### Inheritance

Inherits from: [zx::object\< resource \>](https://fuchsia.dev/reference/cpp/class/zx/object)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1a9adfd7a31f185372ad9634dee0f8e3ce()` ||
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1a665d9963e01eee7c601abb8c756c7bd2(zx_handle_t value)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1aae8db713c6edb41f2c6852cf41249e91(https://fuchsia.dev/reference/cpp/class/zx/object#classzx_1_1object && h)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1afbe18a22d9e61db868b17b7c1dd19718(https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource && other)` ||

| ### Public static attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1a9cdd321d8c03bc6ac590733b83475659 = ZX_OBJ_TYPE_RESOURCE` | `constexpr zx_obj_type_t` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1a4025c4ae630b826b8c4825cb74b7c2bd(https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource && other)` | `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource &` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource_1a7620b55d7405f7a3fec72ae83ada7082(const https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource & parent, uint32_t options, uint64_t base, size_t len, const char *name, size_t namelen, https://fuchsia.dev/reference/cpp/class/zx/resource#classzx_1_1resource *result)` | `zx_status_t` |

## Public static attributes

### TYPE

```c++
constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_RESOURCE
```

## Public functions

### operator=

```c++
resource & operator=(
  resource && other
)
```

### resource

```c++
constexpr resource()=default
```

### resource

```c++
 resource(
  zx_handle_t value
)
```

### resource

```c++
 resource(
  handle && h
)
```

### resource

```c++
 resource(
  resource && other
)
```

## Public static functions

### create

```c++
zx_status_t create(
  const resource & parent,
  uint32_t options,
  uint64_t base,
  size_t len,
  const char *name,
  size_t namelen,
  resource *result
)
```