Main Page Data Structures File List Data Fields Globals Related Pages
buffer.h File Reference
utility routines for "buffer management".
More...
#include "common.h"
#include <sys/types.h>
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures |
| struct | Buffer |
| | type representing a char*-buffer control block. More...
|
Functions |
| Buffer | bufInit (char *data, size_t len, size_t pos) |
| | creates and returns struct Buffer buffer control block. More...
|
| Buffer * | bufpInit (char *data, size_t len, size_t pos) |
| | creates and returns a pointer to a struct Buffer buffer control block. More...
|
Detailed Description
utility routines for "buffer management".
Definition in file buffer.h.
Function Documentation
| struct Buffer bufInit |
( |
char * |
data, |
|
|
size_t |
len, |
|
|
size_t |
pos |
|
) |
|
|
|
|
creates and returns struct Buffer buffer control block.
-
Parameters:
-
| data |
start of buffer data |
| len |
length of buffer |
| pos |
current position in buffer, relative to "data" |
bufInit is a trivial function that aids in filling out a struct Buffer. It's main purpose is to be able to create a new buffer within a function call.
-
Returns:
-
a struct Buffer with all the given values filled in
Referenced by chInit(), and htInit().
|
| struct Buffer* bufpInit |
( |
char * |
data, |
|
|
size_t |
len, |
|
|
size_t |
pos |
|
) |
|
|
|
|
creates and returns a pointer to a struct Buffer buffer control block.
-
Parameters:
-
| data |
start of buffer data |
| len |
length of buffer |
| pos |
current position in buffer, relative to "data" |
bufInit is a trivial function that aids in filling out a struct Buffer. It's main purpose is to malloc memory for a struct Buffer, fill it with data return a pointer to it.
-
Returns:
-
a pointer to a struct Buffer with all the given values filled in
Referenced by buildBasicHeader().
|
Generated on Fri Jan 25 22:40:32 2002 for PDepp Webserver by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001