bglibs: iobuf Struct Reference

- Main Page
- Modules
- Data Structures
- Files
- Directories
- Related Pages
- Examples

- Alphabetical List
- Data Structures
- Data Fields

# iobuf Struct Reference
[iobuf: I/O Buffer Management]

`#include <common.h>`

## Data Fields
int | fd
char * | buffer
unsigned | bufsize
unsigned | buflen
unsigned | bufstart
unsigned | offset
unsigned | timeout
unsigned | flags
int | errnum

## Detailed Description

The base I/O buffer structure.

## Field Documentation

char* iobuf::buffer

The buffer memory.

unsigned iobuf::buflen

Length of the data in the buffer.

unsigned iobuf::bufsize

Total buffer size.

unsigned iobuf::bufstart

Start of the data in the buffer.

int iobuf::errnum

Saved errno flag.

int iobuf::fd

File descriptor being buffered.

unsigned iobuf::flags

Status flags.

unsigned iobuf::offset

Current file read/write offset.

unsigned iobuf::timeout

I/O timeout in ms (`0` for no timeout).

The documentation for this struct was generated from the following file:

- iobuf/common.h