bglibs
Data Fields
iobuf Struct Reference

#include <iobuf_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

◆ buffer

char* iobuf::buffer

◆ buflen

unsigned iobuf::buflen

◆ bufsize

unsigned iobuf::bufsize

◆ bufstart

unsigned iobuf::bufstart

◆ errnum

int iobuf::errnum

Saved errno flag.

Referenced by ibuf_getnetstring(), and obuf_seek().

◆ fd

int iobuf::fd

◆ flags

unsigned iobuf::flags

◆ offset

unsigned iobuf::offset

Current file read/write offset.

Referenced by ibuf_read_large(), ibuf_refill(), ibuf_seek(), ibuf_tell(), obuf_flush(), obuf_seek(), and obuf_write_large().

◆ timeout

unsigned iobuf::timeout

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

Referenced by ibuf_read_large(), ibuf_refill(), iobuf_timeout(), obuf_flush(), and obuf_write_large().


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