it's better to structure your C++ addons such that they receive a pointer to a blob of data, and the length that they're allowed to use, and then deal with it