Go to the documentation of this file.
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 bufsz_p
size of 1st buffer and min.
Block< uInt > uselen_p
used length per buffer
Int nextbuf_p
buffernr for next function
uInt newbuf(uInt nrOfValues, uInt valueSize)
Get the next buffer for storing nrOfValues values of size valueSize bytes, and return the number of v...
Int nrbuf_p
nr of buffers allocated
Int maxnrbuf_p
size of Blocks
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...
void remove(uInt nrOfBuffer=1)
Remove buffer nrOfBuffer and the buffers appended to it, and re-initialize the current buffer.
uInt curtotlen_p
total length of current buffer
this file contains all the compiler specific defines
~DynBuffer()
Remove the whole buffer, i.e.
Int curbuf_p
current buffernr
void allocstart()
Prepare for storing data (re-initialize the buffer)
Bool next(uInt &usedLength, Char *&ptr)
Get the pointer to the next buffer and its used length in bytes.
uInt curuselen_p
used length of current buffer
Block< uInt > totlen_p
total length per buffer
PtrBlock< Char * > bufptr_p
pointer to buffer
void nextstart()
Prepare for data retrieval (set up for looping through the buffers).
bool Bool
Define the standard types used by Casacore.
Char * curbufptr_p
pointer to current buffer
DynBuffer(uInt nrOfBytes=4096)
Allocate a first buffer of the specified number of bytes (default 4096).