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
`Message* createMessage(const char * value, const char *key)
{
// these will be updated as the message is prepared for production
const static int crc = 1001;
const static signed char magicByte = -1;
const static signed char attributes = 0; // last three bits must be zero to disable gzip compression
unsigned char *v = new unsigned char[strlen(value)];
memcpy(v, value, strlen(value));
unsigned char *k = new unsigned char[strlen(key)];
memcpy(k, key, strlen(key));
Under line 89:
`Message* createMessage(const char * value, const char *key)
{
// these will be updated as the message is prepared for production
const static int crc = 1001;
const static signed char magicByte = -1;
const static signed char attributes = 0; // last three bits must be zero to disable gzip compression
unsigned char *v = new unsigned char[strlen(value)];
memcpy(v, value, strlen(value));
unsigned char *k = new unsigned char[strlen(key)];
memcpy(k, key, strlen(key));
return new Message(crc, magicByte, attributes, strlen(key), (unsigned char *)k, strlen(value), (unsigned char *)v, 0, true);
}`
The text was updated successfully, but these errors were encountered: