#include <assert.h>
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include <linux/compiler.h>
#include <sys/types.h>
Go to the source code of this file.
|
int | strbuf_init (struct strbuf *buf, ssize_t hint) |
|
void | strbuf_release (struct strbuf *buf) |
|
char * | strbuf_detach (struct strbuf *buf, size_t *) |
|
static ssize_t | strbuf_avail (const struct strbuf *sb) |
|
int | strbuf_grow (struct strbuf *buf, size_t) |
|
static int | strbuf_setlen (struct strbuf *sb, size_t len) |
|
int | strbuf_addch (struct strbuf *sb, int c) |
|
int | strbuf_add (struct strbuf *buf, const void *, size_t) |
|
static int | strbuf_addstr (struct strbuf *sb, const char *s) |
|
int | strbuf_addf (struct strbuf *sb, const char *fmt,...) __printf(2 |
|
int ssize_t | strbuf_read (struct strbuf *, int fd, ssize_t hint) |
|
◆ STRBUF_INIT
◆ strbuf_add()
int strbuf_add |
( |
struct strbuf * |
buf, |
|
|
const void * |
, |
|
|
size_t |
|
|
) |
| |
◆ strbuf_addch()
int strbuf_addch |
( |
struct strbuf * |
sb, |
|
|
int |
c |
|
) |
| |
◆ strbuf_addf()
int strbuf_addf |
( |
struct strbuf * |
sb, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ strbuf_addstr()
static int strbuf_addstr |
( |
struct strbuf * |
sb, |
|
|
const char * |
s |
|
) |
| |
|
inlinestatic |
◆ strbuf_avail()
static ssize_t strbuf_avail |
( |
const struct strbuf * |
sb | ) |
|
|
inlinestatic |
◆ strbuf_detach()
char* strbuf_detach |
( |
struct strbuf * |
buf, |
|
|
size_t * |
|
|
) |
| |
◆ strbuf_grow()
int strbuf_grow |
( |
struct strbuf * |
buf, |
|
|
size_t |
|
|
) |
| |
◆ strbuf_init()
int strbuf_init |
( |
struct strbuf * |
buf, |
|
|
ssize_t |
hint |
|
) |
| |
◆ strbuf_read()
int ssize_t strbuf_read |
( |
struct strbuf * |
, |
|
|
int |
fd, |
|
|
ssize_t |
hint |
|
) |
| |
◆ strbuf_release()
void strbuf_release |
( |
struct strbuf * |
buf | ) |
|
◆ strbuf_setlen()
static int strbuf_setlen |
( |
struct strbuf * |
sb, |
|
|
size_t |
len |
|
) |
| |
|
inlinestatic |
◆ strbuf_slopbuf