Implemented encode and decode methods for just 1 bit.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 19 Feb 2012 18:19:55 +0000 (16:19 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 19 Feb 2012 18:22:26 +0000 (16:22 -0200)
commitad545958f408012956bcac4cf466c94bec014bcc
tree6ddc9d96ce256b8926b3dd6332580bb7dc1110b0
parentb11fcd7293bca947899d1bd45c3d9e0b0458983a
Implemented encode and decode methods for just 1 bit.
- In order to hide statements like "Payload[13] | bit ? 0x08 : 0x0" and "Payload[13] & 0x04".
src/host/messagepayload.cpp
src/host/messagepayload.h
test/test_messagepayload.cpp