NAME
arena_buffer_alloc,
arena_buffer_read,
arena_buffer_read_fd,
arena_buffer_getline —
arena allocated buffer
structure
SYNOPSIS
#include
<libks/arena-buffer.h>
struct buffer *
arena_buffer_alloc(struct
arena_scope *scope,
size_t init_size);
struct buffer *
arena_buffer_read(struct
arena_scope *scope, const
char *path);
struct buffer *
arena_buffer_read_fd(struct
arena_scope *scope, int
fd);
const char *
arena_buffer_getline(struct
arena_scope *scope, const
struct buffer *bf, struct
buffer_getline *);
DESCRIPTION
The
arena_buffer_alloc()
function behaves like
buffer_alloc().
The
arena_buffer_read()
function behaves like
buffer_read().
The
arena_buffer_read_fd()
function behaves like
buffer_read_fd().
The
arena_buffer_getline()
function behaves like
buffer_getline().
RETURN VALUES
The arena_buffer_alloc() always succeeds
and returns a pointer to the allocated buffer structure.
SEE ALSO
AUTHORS
Anton Lindqvist <anton@basename.se>