BlockAllocatedMemoryStreamRead(Byte, Int32, Int32) Method
Reads a block of bytes from the current stream and writes the data to buffer.
Namespace: Gemstone.IOAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public override int Read(
byte[] buffer,
int startIndex,
int length
)
Public Overrides Function Read (
buffer As Byte(),
startIndex As Integer,
length As Integer
) As Integer
public:
virtual int Read(
array<unsigned char>^ buffer,
int startIndex,
int length
) override
function Read(buffer, startIndex, length);
- buffer Byte
- When this method returns, contains the specified byte array with the values between startIndex and (startIndex + length - 1) replaced by the characters read from the current stream.
- startIndex Int32
- The byte offset in buffer at which to begin reading.
- length Int32
- The maximum number of bytes to read.
Int32
The total number of bytes written into the buffer. This can be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached before any bytes are read.
ArgumentNullException | buffer is null. |
ArgumentOutOfRangeException | startIndex or length is less than 0 -or-
startIndex and length will exceed buffer length.
|
ObjectDisposedException | The stream is closed. |