why not just use add_buffer() on the data package which is going to be saved by the SDK? Or don't you have access to the real memory layout as its construction is hidden somewhere in the sdk dll?
I have no experience with this SDK. I took a look and figured out that I didn't figure it out.