allwinner_a64/android/external/fio/lib/output_buffer.h
2018-08-08 16:14:42 +08:00

17 lines
375 B
C

#ifndef FIO_OUTPUT_BUFFER_H
#define FIO_OUTPUT_BUFFER_H
#include <unistd.h>
struct buf_output {
char *buf;
size_t buflen;
size_t max_buflen;
};
void buf_output_init(struct buf_output *out);
void buf_output_free(struct buf_output *out);
size_t buf_output_add(struct buf_output *out, const char *buf, size_t len);
size_t buf_output_flush(struct buf_output *out);
#endif