X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseInt.hh;h=f73c4374efba66ed0cc8520dd35cf6005d603b29;hb=b58cd652f29256e1a0d774159bc8da7357d0df8d;hp=761239807863e08b9188c81e193f9aced47a00fe;hpb=54eed72c506b09ef5b4be0b62fecedfbc0e3f261;p=senf.git diff --git a/Packets/ParseInt.hh b/Packets/ParseInt.hh index 7612398..f73c437 100644 --- a/Packets/ParseInt.hh +++ b/Packets/ParseInt.hh @@ -299,6 +299,8 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// typedef boost::int32_t value_type; + static size_type const start_bit = Start; + static size_type const end_bit = End; static size_type const fixed_bytes = (End-1)/8+1; value_type value() const { @@ -352,6 +354,8 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// typedef boost::uint32_t value_type; + static size_type const start_bit = Start; + static size_type const end_bit = End; static size_type const fixed_bytes = (End-1)/8+1; value_type value() const { return detail::packet::parse_bitfield::parse(i()); } @@ -393,6 +397,7 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// typedef bool value_type; + static size_type const bit = Bit; static size_type const fixed_bytes = Bit/8+1; value_type value() const { return i()[Bit/8] & (1<<(7-(Bit%8))); }