byte[] GetCopyData()
{
if (!CanCopy()) return new byte[0];
// put bytes into buffer
byte[] buffer = new byte[_selectionLength];
int id = -1;
for (long i = _bytePos; i < _bytePos + _selectionLength; i++)
{
id++;
buffer[id] = _byteProvider.ReadByte(i);
}
return buffer;
}
/// <summary>