Rev 1642 | Rev 1990 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1642 | Rev 1987 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | memset(this->bytes_, 0, byte_size); |
38 | memset(this->bytes_, 0, byte_size); |
| 39 | } |
39 | } |
| 40 | 40 | ||
| 41 | Bitset::Bitset(const Byteset& set) |
41 | Bitset::Bitset(const Byteset& set) |
| 42 | { |
42 | { |
| 43 | this->count_ = set. |
43 | this->count_ = set.size() * 8; |
| 44 | this->bytes_ = new unsigned char[set. |
44 | this->bytes_ = new unsigned char[set.size()]; |
| 45 | 45 | ||
| 46 | memcpy(this->bytes_, set. |
46 | memcpy(this->bytes_, set.data(), set.size()); |
| 47 | } |
47 | } |
| 48 | 48 | ||
| 49 | Bitset::~Bitset() |
49 | Bitset::~Bitset() |
| 50 | { |
50 | { |
| 51 | delete [] this->bytes_; |
51 | delete [] this->bytes_; |