28 #ifndef CASA_DYNBUFFER_H
29 #define CASA_DYNBUFFER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Containers/Block.h>
181 n =
newbuf (nrOfValues, valueSize);
uInt alloc(uInt nrOfValues, uInt valueSize, Char *&ptr)
Allocate buffer space for nrOfValues values of size valueSize bytes, and return the pointer ptr to th...
uInt bufsz_p
size of 1st buffer and min.
Int nextbuf_p
buffernr for next function
~DynBuffer()
Remove the whole buffer, i.e.
Char * curbufptr_p
pointer to current buffer
Block< uInt > totlen_p
total length per buffer
uInt newbuf(uInt nrOfValues, uInt valueSize)
Get the next buffer for storing nrOfValues values of size valueSize bytes, and return the number of v...
void remove(uInt nrOfBuffer=1)
Remove buffer nrOfBuffer and the buffers appended to it, and re-initialize the current buffer.
Int nrbuf_p
nr of buffers allocated
Int maxnrbuf_p
size of Blocks
Bool next(uInt &usedLength, Char *&ptr)
Get the pointer to the next buffer and its used length in bytes.
Int curbuf_p
current buffernr
void allocstart()
Prepare for storing data (re-initialize the buffer)
DynBuffer(uInt nrOfBytes=4096)
Allocate a first buffer of the specified number of bytes (default 4096).
uInt curuselen_p
used length of current buffer
PtrBlock< Char * > bufptr_p
pointer to buffer
void nextstart()
Prepare for data retrieval (set up for looping through the buffers).
uInt curtotlen_p
total length of current buffer
Block< uInt > uselen_p
used length per buffer
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.