Description
I would like to use this decode method (listed below), however it ignores the provided buffer. The subsequent call to decodeIr() munges an m_buffer pointing to null memory.
I don't want to have to call the file-based decode method.
It's an operational hassle to have to reference an sbeir file everytime a tool needs it. It would be much simpler if (c++ based) tools could simply reference the sbeir file contents that is embedded in the program. But to do this, one must be able to pass an sbeir bytearray into a decode method that doesn't ignore it.
Would you please provide a way to pass in the buffer and length to the decode method? Perhaps an overloaded version of decode will do.
Thank you.
Joe
int decode(char *buffer, std::uint64_t length)
{
m_length = length;
return decodeIr();
}