# | Line 35 | Line 35 | Binary::Binary(std::string& string, bool | |
---|---|---|
35 | ||
36 | std::string::size_type index(0); | |
37 | ||
38 | < | _rmforeach (std::vector<char>, byte, bytes) |
39 | < | { |
40 | < | _rfor (char, bit, 0, 8) |
41 | < | { |
42 | < | *byte |= (string[index++] == '1') << bit; |
43 | < | } |
44 | < | } |
38 | > | _rmforeach (std::vector<char>, byte, bytes) _rfor (char, bit, 0, 8) *byte |= (string[index++] == '1') << bit; |
39 | } | |
40 | ||
41 | template <typename Type> |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |