internal void VerifyGetBytes(byte[] data, int offset, int count)
{
if (data == null) throw new ArgumentNullException(nameof(data));
if (offset < 0) throw new ArgumentOutOfRangeException(nameof(offset), SR.ArgumentOutOfRange_NeedNonNegNum);
if (count < 0) throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
if (count > data.Length - offset) throw new ArgumentException(SR.Argument_InvalidOffLen);
}