Partager via


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
public override int Read (
    byte[] buffer,
    int offset,
    int count
)
public:
virtual int Read (
    array<unsigned char>^ buffer, 
    int offset, 
    int count
) override
public int Read (
    byte[] buffer, 
    int offset, 
    int count
)
public override function Read (
    buffer : byte[], 
    offset : int, 
    count : int
) : int

Parameters

  • buffer
    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
    The place in buffer at which to begin writing.
  • count
    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

The return value for the Read method is the number of characters read.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003