pellegre / libcrafter

A high level C++ network packet sniffing and crafting library.
298 stars 88 forks source link

bitsfield: support big endian machines #20

Closed oliviertilmans closed 9 years ago

oliviertilmans commented 9 years ago

Human values are now converted/decoded in big endian, and thus the bitsfield now lies 'on the right' of the word encoding it, e.g.: BitsField<4,0> is the 4 last bits of the word encoding it in big endian.