# Buffer

```python
class Buffer
```

A simple byte-sized buffer.

This struct represents a contiguous block of memory for storing byte-sized data.

## Attributes

| Name | Description |
| --- | --- |
| [`size`](<#size>) |  |

### size

```python
property size: int
```

## Methods

| Name | Description |
| --- | --- |
| [`__init__`](<#init>) |  |
| [`set_buffer`](<#set-buffer>) |  |
| [`__repr__`](<#repr>) |  |

### \_\_init\_\_

```python
def __init__(self, _buffer: Optional[_cQbRuntime.Buffer] = None)
```

### set\_buffer

```python
def set_buffer(self, arr: np.ndarray)
```

### \_\_repr\_\_

```python
def __repr__(self)
```
