ubit
Public Member Functions | Protected Types | Protected Attributes | Friends | List of all members
ubit::UIObuf Class Reference

UIObuf (. More...

#include <usocket.hpp>

Inheritance diagram for ubit::UIObuf:
ubit::UInbuf ubit::UOutbuf ubit::UMSrequest

Public Member Functions

const char * data () const
 
char * data ()
 returns the data in this IObuf (may be NOT null-terminated). More...
 
unsigned int size () const
 
unsigned int consumed () const
 
bool resize (unsigned short)
 
bool augment (unsigned short)
 

Protected Types

enum  { DEFAULT_BUFSIZE = 512, AUGMENT_QUANTUM = 2048 }
 

Protected Attributes

char * buffer
 
char default_buffer [DEFAULT_BUFSIZE]
 
unsigned int inpos
 
unsigned int outpos
 
unsigned int bufsize
 

Friends

class USocket
 

Detailed Description

UIObuf (.

See also
USocket).

Member Function Documentation

§ data()

char * ubit::UIObuf::data ( )

returns the data in this IObuf (may be NOT null-terminated).

data() should NOT be freed (this is done automatically when the UIObuf is destroyed).


The documentation for this class was generated from the following files: