CarobNS::WriteCache Class Reference

Holds a buffer for writes operations. More...

#include <BufferedSocket.hpp>

List of all members.

Public Member Functions

 WriteCache ()
 Creates and empty cache.
int getDataSize ()
 Returns the size of data written until now.
java_byte * getData ()
 Returns a pointer to the first available byte.
void append (const java_byte *src, int len)
 Add data to cache.
void reset ()
 Discards all data.
int getRemainingSize ()
 Returns the size left in the buffer.

Public Attributes

java_byte buffer [WRITE_BUFFER_SIZE]
 Buffer in which data read from the network is stored.
int write_index
 Index of the next byte to be read.


Detailed Description

Holds a buffer for writes operations.


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 17:40:20 2007 for Carob by  doxygen 1.4.7