I need a function that saves DcmFileFormat object to memory buffer. Presently I used DcmFileFormat::saveFile()
For my scenario it is more efficient to save (000s) DcmFileFormat objects,one at a time, into a single BYTE* memory
buffer, something like DcmFileFormat::saveBuffer( BYTE* Buf,....)
a) Looking into the code of ::saveFile() is it possible to replace DcmOutputFileStream
and use the DcmOutputStream and somehow attach my buffer to it.
b) I need to allocated enough memory for several such objects, so is there a quick call, to do
something like int DcmFileFormat::ExactDiskSize()
Sorry if this is already covered in some documentation and postings.
Thank you
DcmFileFormat::saveBuffer(... ???
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 318
- Joined: Mon, 2014-03-03, 09:51
- Location: Oldenburg, Germany
Re: DcmFileFormat::saveBuffer(... ???
I can answer this one:
Have a look at the class DcmOutputBufferStream.artemmikheev wrote:a) Looking into the code of ::saveFile() is it possible to replace DcmOutputFileStream
and use the DcmOutputStream and somehow attach my buffer to it.
Who is online
Users browsing this forum: Google [Bot] and 1 guest