summaryrefslogtreecommitdiff
path: root/docs/application/buffer.md
blob: 92de6aedead7124be484223b731214f000c73749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Buffer

---

## Object Definitions

```c
typedef struct _kpl_buffer {
    KPL_ALLOC_HEADER(struct _kpl_buffer);
    size_t byte_length : KPL_ALLOC_POOL_SIZE;
    int32_t io_register_index : KPL_ALLOC_WEIGHT;
    kpl_interface *interface;
    uint8_t bytes[];
} kpl_buffer;
```

## Io uring buffer register

### Set `io_register_index` to -1 of not used

## Unicode Methods