Subversion Repositories HomeAutomation

Rev

Rev 1987 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1987 Rev 1990
Line 41... Line 41...
41
Bitset::Bitset(const Byteset& set)
41
Bitset::Bitset(const Byteset& set)
42
{
42
{
43
    this->count_ = set.size() * 8;
43
    this->count_ = set.size() * 8;
44
    this->bytes_ = new unsigned char[set.size()];
44
    this->bytes_ = new unsigned char[set.size()];
45
 
45
 
-
 
46
    for (unsigned int n = 0; n < set.size(); n++)
-
 
47
    {
46
    memcpy(this->bytes_, set.data(), set.size());
48
      this->bytes_[n] = set[n];
-
 
49
    }
47
}
50
}
48
 
51
 
49
Bitset::~Bitset()
52
Bitset::~Bitset()
50
{
53
{
51
    delete [] this->bytes_;
54
    delete [] this->bytes_;