# fidl::BufferSpan

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fidl/buffer-span#structfidl_1_1_buffer_span_1a1fed3d47cd93c18aa77466a0fc66b00b()` ||
| `https://fuchsia.dev/reference/cpp/struct/fidl/buffer-span#structfidl_1_1_buffer_span_1a60a576cc68b938734469fb8fd85ab681(uint8_t *data, uint32_t capacity)` ||

| ### Public attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fidl/buffer-span#structfidl_1_1_buffer_span_1a283aece5c1cf0f9349aa50682a266da0 = 0` | `uint32_t` |
| `https://fuchsia.dev/reference/cpp/struct/fidl/buffer-span#structfidl_1_1_buffer_span_1a0396be363b90820b1b602d2aefd9ab7b = nullptr` | `uint8_t *` |

## Public attributes

### capacity

```c++
uint32_t fidl::BufferSpan::capacity = 0
```

### data

```c++
uint8_t * fidl::BufferSpan::data = nullptr
```

## Public functions

### BufferSpan

```c++
 fidl::BufferSpan::BufferSpan()=default
```

### BufferSpan

```c++
 fidl::BufferSpan::BufferSpan(
  uint8_t *data,
  uint32_t capacity
)
```