Files
mars-libowfat/iob_internal.h
2025-01-20 18:40:47 +00:00

14 lines
325 B
C

#include <libowfat/iob.h>
#include <libowfat/array.h>
typedef struct iob_entry {
enum { FROMBUF, FROMFILE } type;
int64 fd;
const char* buf;
uint64 offset,n;
void (*cleanup)(struct iob_entry* x);
} iob_entry;
int iob_addbuf_internal(io_batch* b,const void* buf,uint64 n,
void (*cleanup)(struct iob_entry* x));