Stream.ValidateBufferArguments(Byte[], Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
验证提供给读取和写入方法的参数 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”参数。
例外
buffer 是 null。
offset 在边界 buffer外,或 count 为负值,或由组合 offset 指定的范围超过 count 长度 buffer。