Function get [src]
Prototype
pub fn get(self: *BufferGroup, cqe: linux.io_uring_cqe) ![]u8
Parameters
self: *BufferGroup
cqe: linux.io_uring_cqe
Source
pub fn get(self: *BufferGroup, cqe: linux.io_uring_cqe) ![]u8 {
const buffer_id = try cqe.buffer_id();
const used_len = @as(usize, @intCast(cqe.res));
return self.get_by_id(buffer_id)[0..used_len];
}