---
title: setDirection
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iobuffermemorydescriptor/1574826-setdirection
---

# setDirection

Changes the direction associated with the buffer’s memory transfers.

## Declaration

```occ
virtual void setDirection(IODirection direction);
```

## Parameters

- `direction`: The new direction of transfers.

## See Also

### Configuring the Descriptor

- [getCapacity](kernel/iobuffermemorydescriptor/1574844-getcapacity.md)
- [setLength](kernel/iobuffermemorydescriptor/1574850-setlength.md)
