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
{
char * beg = &buff[0];
mfast::message_cref orimsg = decoder.decode(first, last, first_message);
//then i encode the orimsg
//encoder.template_with_id(orimsg .the_id);
beg += encoder.encode(orimsg , beg, end - beg, first_message);
first_message = false;
}
//then i decode the new buff right now
const char *ppmap = &buff[0];
{
const char *f2 = &buff[0];
mfast::message_cref msg = decoder.decode(f2, beg , first_message);
}
//but i printed the pmap and template, it did change the pmap if some optional fields had no values
while (!(*ppmap & 0x80)) {
printf("%02x-", *ppmap);
ppmap++;
}
printf("%02x-", *ppmap);
ppmap++;
////////////////////////////////////////////////////////////
// and i try the release version 1.2.1, it can't decode any message, there was something missing in the <decimal_cref.cpp>
The text was updated successfully, but these errors were encountered:
jamesmasika
changed the title
mfast::decoder may change the pmap and templateid.
mfast::encoder may change the pmap and templateid.
Apr 18, 2019
{
char * beg = &buff[0];
mfast::message_cref orimsg = decoder.decode(first, last, first_message);
//then i encode the orimsg
//encoder.template_with_id(orimsg .the_id);
beg += encoder.encode(orimsg , beg, end - beg, first_message);
first_message = false;
}
//then i decode the new buff right now
const char *ppmap = &buff[0];
{
const char *f2 = &buff[0];
mfast::message_cref msg = decoder.decode(f2, beg , first_message);
}
//but i printed the pmap and template, it did change the pmap if some optional fields had no values
while (!(*ppmap & 0x80)) {
printf("%02x-", *ppmap);
ppmap++;
}
printf("%02x-", *ppmap);
ppmap++;
////////////////////////////////////////////////////////////
// and i try the release version 1.2.1, it can't decode any message, there was something missing in the <decimal_cref.cpp>
The text was updated successfully, but these errors were encountered: