public byte[] GetBuffer(int count, out int offset, out int offsetMax)
{
offset = _offset;
if (offset <= _offsetMax - count)
{
offsetMax = _offset + count;
}
else
{
TryEnsureBytes(Math.Min(count, _windowOffsetMax - offset));
offsetMax = _offsetMax;
}
return _buffer;
}