fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Functions | Variables
buffer.c File Reference

input/output routines More...

#include <unistd.h>
#include "buffer.h"
#include "str.h"
#include "byte.h"
#include "error.h"
Include dependency graph for buffer.c:

Go to the source code of this file.

Functions

void buffer_init (buffer *s, ssize_t(*op)(), int fd, char *buf, size_t len)
 
ssize_t buffer_unixread (int fd, char *buf, size_t len)
 
ssize_t buffer_unixwrite (int fd, char *buf, size_t len)
 
int buffer_copy (buffer *bout, buffer *bin)
 
int buffer_feed (buffer *s)
 
int buffer_bget (buffer *s, char *buf, size_t len)
 
int buffer_get (buffer *s, char *buf, size_t len)
 
char * buffer_peek (buffer *s)
 
void buffer_seek (buffer *s, size_t len)
 
int buffer_flush (buffer *s)
 
int buffer_putalign (buffer *s, const char *buf, size_t len)
 
int buffer_put (buffer *s, const char *buf, size_t len)
 
int buffer_putflush (buffer *s, const char *buf, size_t len)
 
int buffer_putsalign (buffer *s, const char *buf)
 
int buffer_puts (buffer *s, const char *buf)
 
int buffer_putsflush (buffer *s, const char *buf)
 

Variables

char buffer_0_space [BUFFER_INSIZE]
 
bufferbuffer_0 = &it0
 
char buffer_1_space [BUFFER_OUTSIZE]
 
bufferbuffer_1 = &it1
 
char buffer_2_space [BUFFER_OUTSIZE]
 
bufferbuffer_2 = &it2
 
char buffer_0_small [BUFFER_SMALL]
 
bufferbuffer_0small = &is0
 
char buffer_1_small [BUFFER_SMALL]
 
bufferbuffer_1small = &is1
 
char buffer_2_small [BUFFER_SMALL]
 
bufferbuffer_2small = &is2
 

Detailed Description

input/output routines

Author
djb

Definition in file buffer.c.

Function Documentation

◆ buffer_bget()

int buffer_bget ( buffer s,
char *  buf,
size_t  len 
)

Definition at line 110 of file buffer.c.

Here is the call graph for this function:

◆ buffer_copy()

int buffer_copy ( buffer bout,
buffer bin 
)

Definition at line 62 of file buffer.c.

Here is the call graph for this function:

◆ buffer_feed()

int buffer_feed ( buffer s)

Definition at line 97 of file buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buffer_flush()

int buffer_flush ( buffer s)

Definition at line 161 of file buffer.c.

Here is the caller graph for this function:

◆ buffer_get()

int buffer_get ( buffer s,
char *  buf,
size_t  len 
)

Definition at line 121 of file buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buffer_init()

void buffer_init ( buffer s,
ssize_t(*)()  op,
int  fd,
char *  buf,
size_t  len 
)

Definition at line 13 of file buffer.c.

Here is the caller graph for this function:

◆ buffer_peek()

char * buffer_peek ( buffer s)

Definition at line 132 of file buffer.c.

◆ buffer_put()

int buffer_put ( buffer s,
const char *  buf,
size_t  len 
)

Definition at line 185 of file buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buffer_putalign()

int buffer_putalign ( buffer s,
const char *  buf,
size_t  len 
)

Definition at line 171 of file buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buffer_putflush()

int buffer_putflush ( buffer s,
const char *  buf,
size_t  len 
)

Definition at line 207 of file buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buffer_puts()

int buffer_puts ( buffer s,
const char *  buf 
)

Definition at line 218 of file buffer.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buffer_putsalign()

int buffer_putsalign ( buffer s,
const char *  buf 
)

Definition at line 213 of file buffer.c.

Here is the call graph for this function:

◆ buffer_putsflush()

int buffer_putsflush ( buffer s,
const char *  buf 
)

Definition at line 223 of file buffer.c.

Here is the call graph for this function:

◆ buffer_seek()

void buffer_seek ( buffer s,
size_t  len 
)

Definition at line 137 of file buffer.c.

◆ buffer_unixread()

ssize_t buffer_unixread ( int  fd,
char *  buf,
size_t  len 
)

Definition at line 28 of file buffer.c.

Here is the call graph for this function:

◆ buffer_unixwrite()

ssize_t buffer_unixwrite ( int  fd,
char *  buf,
size_t  len 
)

Definition at line 33 of file buffer.c.

Variable Documentation

◆ buffer_0

buffer* buffer_0 = &it0

Definition at line 40 of file buffer.c.

◆ buffer_0_small

char buffer_0_small[BUFFER_SMALL]

Definition at line 50 of file buffer.c.

◆ buffer_0_space

char buffer_0_space[BUFFER_INSIZE]

Definition at line 38 of file buffer.c.

◆ buffer_0small

buffer* buffer_0small = &is0

Definition at line 52 of file buffer.c.

◆ buffer_1

buffer* buffer_1 = &it1

Definition at line 44 of file buffer.c.

◆ buffer_1_small

char buffer_1_small[BUFFER_SMALL]

Definition at line 54 of file buffer.c.

◆ buffer_1_space

char buffer_1_space[BUFFER_OUTSIZE]

Definition at line 42 of file buffer.c.

◆ buffer_1small

buffer* buffer_1small = &is1

Definition at line 56 of file buffer.c.

◆ buffer_2

buffer* buffer_2 = &it2

Definition at line 48 of file buffer.c.

◆ buffer_2_small

char buffer_2_small[BUFFER_SMALL]

Definition at line 58 of file buffer.c.

◆ buffer_2_space

char buffer_2_space[BUFFER_OUTSIZE]

Definition at line 46 of file buffer.c.

◆ buffer_2small

buffer* buffer_2small = &is2

Definition at line 60 of file buffer.c.