buffer_fromarray(3)

buffer_fromarray3

Initialize buffer structure from array

Usage

#include <libowfat/array.h> #include <libowfat/buffer.h>

void buffer_fromarray(buffer* b,array* a);

Overview

buffer_fromarray makes a virtual read buffer from an array. The buffer reading functions will be able to read until the end of the data in the array, then signal EOF. The buffer does not have its own buffer space, it reuses the one in the array.

Do not touch the array until you are done with the buffer!

Reading data from the buffer will not change the stralloc.

Releases

5 releases since Debian 9 (Stretch); the text changed 1 time.

  1. 9–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.