2015-05-19 16:30:35 +00:00
|
|
|
/*
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2016-09-07 14:24:00 +00:00
|
|
|
* Copyright (C) 2015-2016 Symless Ltd.
|
2015-05-19 16:30:35 +00:00
|
|
|
*
|
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
|
|
|
*
|
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "synergy/Chunk.h"
|
|
|
|
#include "base/String.h"
|
|
|
|
|
|
|
|
Chunk::Chunk(size_t size)
|
|
|
|
{
|
2016-12-28 11:50:32 +00:00
|
|
|
m_chunk = new char[size];
|
|
|
|
memset(m_chunk, 0, size);
|
2015-05-19 16:30:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Chunk::~Chunk()
|
|
|
|
{
|
2016-12-28 11:50:32 +00:00
|
|
|
delete[] m_chunk;
|
2015-05-19 16:30:35 +00:00
|
|
|
}
|