Stream.ValidateBufferArguments(Byte[], Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates arguments provided to reading and writing methods on 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)
Parameters
- buffer
- Byte[]
The array "buffer" argument passed to the reading or writing method.
- offset
- Int32
The integer "offset" argument passed to the reading or writing method.
- count
- Int32
The integer "count" argument passed to the reading or writing method.
Exceptions
buffer
was null
.
offset
was outside the bounds of buffer
, or count
was negative, or the range specified by the combination of offset
and count
exceed the length of buffer
.