ARENA_BUFFER(3) Library Functions Manual ARENA_BUFFER(3)

arena_buffer_alloc, arena_buffer_read, arena_buffer_read_fd, arena_buffer_getlinearena allocated buffer structure

#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 *);

The () function behaves like ().

The () function behaves like ().

The () function behaves like ().

The () function behaves like ().

The arena_buffer_alloc() always succeeds and returns a pointer to the allocated buffer structure.

arena(3), buffer(3)

Anton Lindqvist <anton@basename.se>

OpenBSD 7.8 January 23, 2024 ARENA_BUFFER(3)