Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: int Read(byte[], int, int)

Declaration

public override int Read(
    byte[] buffer,
    int offset,
    int count
)

Summary

Reads some text or data into the specified buffer. The behaviour depends on the DynamicContentStream.Buffered property. The bytes returned respresent the text or data returned by the underlying enumerator. In the case of UTF-8-encoded text, DynamicContentStream may potentially return incomplete multi-byte sequences; however, all output will be valid UTF-8 when concatenated.

Parameters

byte[]bufferThe buffer to copy the data into.
intoffsetThe offset at which to start copying into buffer.
intcountThe maximum number of bytes to copy. The stream may return less than this.

Returns

The number of bytes actually copied into the buffer.