#include <BufferedSocket.hpp>
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. |