33 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/ofstd/oftypes.h" 36 #include "dcmtk/dcmdata/dcfcache.h" 41 #define DcmWriteCacheBufsize 65536 80 void init(
void *owner, Uint32 fieldLength, Uint32 bytesTransferred, E_ByteOrder byteOrder);
abstract base class for all DICOM elements
This class implements a simple container that stores an input stream, the position of that input stre...
Uint32 numBytes_
number of user data bytes currently in buffer
Uint32 fieldLength_
length of the current DICOM element, in bytes
This class implements a buffering mechanism that is used when writing large elements that reside in f...
base class for output streams.
void init(void *owner, Uint32 fieldLength, Uint32 bytesTransferred, E_ByteOrder byteOrder)
initialize the buffer maintained by this class.
DcmWriteCache()
default constructor. Construction is cheap (no allocation of memory block).
OFBool bufferIsEmpty() const
check whether the buffer is currently empty
void * owner_
current "owner" (DcmElement instance using this buffer)
Uint32 capacity_
buffer size in bytes
DcmFileCache fcache_
file cache object
Uint32 contentLength() const
return the number of bytes of user data currently in buffer
E_ByteOrder byteOrder_
current output byte order
~DcmWriteCache()
destructor
Uint32 writeBuffer(DcmOutputStream &outStream)
write buffer content to output stream
OFCondition fillBuffer(DcmElement &elem)
fill buffer from given DICOM element if buffer is currently empty.
DcmWriteCache & operator=(const DcmWriteCache &arg)
private undefined copy assignment operator
General purpose class for condition codes.
Uint32 offset_
offset within buffer to first byte
Uint32 fieldOffset_
offset within the current DICOM element, in bytes