uint32_t MamaRecordedMessageCodec::encodeBool(char*& buffer, MamaMsgField& mmf) { bool mfv = mmf.getBool(); size_t s = sizeof(mfv); memcpy(buffer, &mfv, s); buffer += s; //printf("Encoding Boolean Field [%d] = %d...\n", s, mfv); return s; }