Stream.ValidateBufferArguments(Byte[], Int32, Int32) 方法

定义

验证提供给读取和写入方法的参数 Stream

protected:
 static void ValidateBufferArguments(cli::array <System::Byte> ^ buffer, int offset, int count);
protected static void ValidateBufferArguments(byte[] buffer, int offset, int count);
static member ValidateBufferArguments : byte[] * int * int -> unit
Protected Shared Sub ValidateBufferArguments (buffer As Byte(), offset As Integer, count As Integer)

参数

buffer
Byte[]

传递给读取或写入方法的数组“buffer”参数。

offset
Int32

传递给读取或写入方法的整数“offset”参数。

count
Int32

传递给读取或写入方法的整数“count”参数。

例外

buffernull

offset 在边界 buffer外,或 count 为负值,或由组合 offset 指定的范围超过 count 长度 buffer

适用于