DataSoft/Nova — Issue #70: Change Suspect Serialization function to allow dynamic size
Author: DataSoft
Created: 2012-03-06 15:53:01+00:00
State: open

The current serialize function for Suspect does not allow for a dynamically sized Suspect. They copy the data over to an argument buffer which must be sized before calling the serialization. But we cannot know what size buffer to use before-hand. So we must use a buffer of size 65k (and hardcode that limit into the serialize function).

This should be rewritten to allow for Suspects of arbitrary dynamic size. Do this by allocating new memory for the suspect on the heap and returning a reference it. (And an output parameter for how long the message is)

This will give us much cleaner and efficient use of buffers around serialization.