Append to array / Take ownership of given block of data

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Nick
Posts: 6
Joined: Thu, 2013-03-07, 09:30

Append to array / Take ownership of given block of data

#1 Post by Nick »

Hi,

Is there a way to append to an array in DCMTK or set an array to a pointer which will then be owned by DCMTK? I can only find ways to get pointers to array data or overwrite it at once by taking a copy (I think). Allocating an array inside DCMTK and writing into it is also fine. As long as there is no copy of the whole block twice, it's good.

Thanks,

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Append to array / Take ownership of given block of data

#2 Post by J. Riesmeier »

Maybe, createUint8/16Array() is what you are looking for. See documentation for details.

Nick
Posts: 6
Joined: Thu, 2013-03-07, 09:30

Re: Append to array / Take ownership of given block of data

#3 Post by Nick »

Thanks, this was what I have been looking for! :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest