private ValidateParameters ( byte array, int offset, int count ) : void | ||
array | byte | |
offset | int | |
count | int | |
return | void |
private void ValidateParameters(byte[] array, int offset, int count)
{
if (array == null)
throw new ArgumentNullException(nameof(array));
if (offset < 0)
throw new ArgumentOutOfRangeException(nameof(offset));
if (count < 0)
throw new ArgumentOutOfRangeException(nameof(count));
if (array.Length - offset < count)
throw new ArgumentException(SR.InvalidArgumentOffsetCount);
}