ConverterStream.Read method

The Read method reads and converts count bytes from the input stream and stores them in buffer, starting at offset.

Namespace:  Microsoft.Exchange.Data.TextConverters
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Overrides Function Read ( _
    buffer As Byte(), _
    offset As Integer, _
    count As Integer _
) As Integer
'Usage
Dim instance As ConverterStream
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer

returnValue = instance.Read(buffer, offset, _
    count)
public override int Read(
    byte[] buffer,
    int offset,
    int count
)

Parameters

  • buffer
    Type: []

    When this method returns, it contains the specified character array with the values between index and (index + count - 1) replaced by characters read and converted from the current source.

  • offset
    Type: System.Int32

    The place in buffer at which to begin writing.

  • count
    Type: System.Int32

    The maximum number of characters to read. If the end of the stream is reached before count of characters is read into buffer, the current method returns.

Return value

Type: System.Int32
The return value for the Read method is the number of characters read.

See also

Reference

ConverterStream class

ConverterStream members

Microsoft.Exchange.Data.TextConverters namespace