# io_uring: change read\(\) to use a ReadBuffer instead · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/52dd468cc3e279e7d1a764c2c3f6fde13a404a14)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 52dd468cc3e279e7d1a764c2c3f6fde13a404a14

Requested commit: 52dd468cc3e279e7d1a764c2c3f6fde13a404a14

Commit: 52dd468cc3e279e7d1a764c2c3f6fde13a404a14

Tree: d929de65162c14a889d875f6457bd821d46a390e

Author: Vincent Rischmann

Committer: Vincent Rischmann

## Message

```
io_uring: change read() to use a ReadBuffer instead

Reads can be done in two ways with io_uring:
* using a simple buffer
* using a automatic buffer selection which requires the user to have
provided a number of buffers before

ReadBuffer let's the caller choose where the data should be read.

```

## Parents

- [7b3e5ce0b3d3e6c8e24dd147d23eec3fe5088d74](https://git.cafe/gitcafe/zig/commit/7b3e5ce0b3d3e6c8e24dd147d23eec3fe5088d74?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/52dd468cc3e279e7d1a764c2c3f6fde13a404a14?format=markdown)
