Go to the documentation of this file.    1 #ifndef __JIO__JBUFFEREDIO__ 
    2 #define __JIO__JBUFFEREDIO__ 
   16 namespace JPP { 
using namespace JIO; }
 
   39       size   = std::max(__size, 1024);
 
   64       return in->getStatus() || !
eof;
 
   84     virtual int read(
char* zbuf, 
int n)
 
   86       for (
int i = 0; i != 
n; ) {
 
  152       size   = std::max(__size, 1024);
 
  188     virtual int write(
const char* zbuf, 
int n)
 
  190       for (
int i = 0; i != 
n; ) {
 
 
Interface for binary input.
 
int size
size of internal buffer
 
The template JSinglePointer class can be used to hold a pointer to an object.
 
~JBufferedReader()
Destructor.
 
virtual void clear()
Clear status of reader.
 
char * buffer
internal buffer
 
int size
size of internal buffer
 
virtual int write(const char *zbuf, int n)
Write byte array.
 
JLANG::JSinglePointer< JReader > in
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
char * buffer
internal buffer
 
JBufferedReader(JReader *__in, const int __size=1048576)
Constructor.
 
Interface for binary output.
 
JBufferedWriter(JWriter *__out, const int __size=1048576)
Constructor.
 
~JBufferedWriter()
Destructor.
 
virtual bool getStatus() const
Status of writer.
 
JLANG::JSinglePointer< JWriter > out
 
int pos
pointer to end of buffered data
 
int ls
pointer to end of available data
 
void flush()
Write internal data to output.
 
Auxiliary classes and methods for binary I/O.
 
int pos
pointer to begin of available data
 
virtual bool getStatus() const
Status of reader.
 
virtual int read(char *zbuf, int n)
Read byte array.