Rev 2118 | Rev 2266 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2118 | Rev 2124 | ||
|---|---|---|---|
| Line 359... | Line 359... | ||
| 359 | return boost::lexical_cast<std::string>((uint64_t)raw_bit_value); |
359 | return boost::lexical_cast<std::string>((uint64_t)raw_bit_value); |
| 360 | } |
360 | } |
| 361 | 361 | ||
| 362 | void Protocol::EncodeUint(common::Bitset& bitset, unsigned int start_bit, unsigned int bit_length, std::string value) |
362 | void Protocol::EncodeUint(common::Bitset& bitset, unsigned int start_bit, unsigned int bit_length, std::string value) |
| 363 | { |
363 | { |
| - | 364 | LOG.Debug("start_bit:" + boost::lexical_cast<std::string>(start_bit) + ", bit_lengt:" + boost::lexical_cast<std::string>(bit_length) + ", value:\"" + value + "\""); |
|
| 364 | uint64_t raw_bit_value = boost::lexical_cast<uint64_t>(value); |
365 | uint64_t raw_bit_value = boost::lexical_cast<uint64_t>(value); |
| 365 | 366 | ||
| 366 | bitset.Write(start_bit, bit_length, raw_bit_value); |
367 | bitset.Write(start_bit, bit_length, raw_bit_value); |
| 367 | } |
368 | } |
| 368 | 369 | ||