You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing an example of working with raw data, I faced an interesting problem. I tried pack an empty MsgPack array manually (char data[] = {0x90};) but compiler suggested me to use unsigned char instead. It seemed to be a good idea but when I passed the result to the encoder, it failed to write to the buffer - the problem is encoder uses WData, which is, actually, a char * (the same story with RData, by the way), so compiler failed to find an appropriate overload of Buffer::write. We should inspect places using char * and fix them.
The text was updated successfully, but these errors were encountered:
While writing an example of working with raw data, I faced an interesting problem. I tried pack an empty MsgPack array manually (
char data[] = {0x90};
) but compiler suggested me to useunsigned char
instead. It seemed to be a good idea but when I passed the result to the encoder, it failed to write to the buffer - the problem is encoder usesWData
, which is, actually, achar *
(the same story withRData
, by the way), so compiler failed to find an appropriate overload ofBuffer::write
. We should inspect places usingchar *
and fix them.The text was updated successfully, but these errors were encountered: