Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Read() [2/5]

virtual int System.IO.BinaryReader.Read ( byte[] buffer,
int index,
int count )
inlinevirtualinherited

Definition at line 409 of file BinaryReader.cs.

410 {
411 if (buffer == null)
412 {
413 throw new ArgumentNullException("buffer", SR.ArgumentNull_Buffer);
414 }
415 if (index < 0)
416 {
417 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_NeedNonNegNum);
418 }
419 if (count < 0)
420 {
421 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
422 }
423 if (buffer.Length - index < count)
424 {
425 throw new ArgumentException(SR.Argument_InvalidOffLen);
426 }
428 return _stream.Read(buffer, index, count);
429 }
readonly Stream _stream
int Read(byte[] buffer, int offset, int count)

References System.IO.BinaryReader._stream, System.SR.Argument_InvalidOffLen, System.SR.ArgumentNull_Buffer, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.buffer, System.count, System.index, System.IO.Stream.Read(), and System.IO.BinaryReader.ThrowIfDisposed().