Share via


ByteEncoder.Convert method (Byte[], Int32, Int32, Byte[], Int32, Int32, Boolean, Int32, Int32, Boolean)

When overridden in a derived class, the Convert method encodes or decodes data.

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

Syntax

'Declaration
Public MustOverride Sub Convert ( _
    input As Byte(), _
    inputIndex As Integer, _
    inputSize As Integer, _
    output As Byte(), _
    outputIndex As Integer, _
    outputSize As Integer, _
    done As Boolean, _
    <OutAttribute> ByRef inputUsed As Integer, _
    <OutAttribute> ByRef outputUsed As Integer, _
    <OutAttribute> ByRef completed As Boolean _
)
'Usage
Dim instance As ByteEncoder
Dim input As Byte()
Dim inputIndex As Integer
Dim inputSize As Integer
Dim output As Byte()
Dim outputIndex As Integer
Dim outputSize As Integer
Dim done As Boolean
Dim inputUsed As Integer
Dim outputUsed As Integer
Dim completed As Boolean

instance.Convert(input, inputIndex, inputSize, _
    output, outputIndex, outputSize, _
    done, inputUsed, outputUsed, completed)
public abstract void Convert(
    byte[] input,
    int inputIndex,
    int inputSize,
    byte[] output,
    int outputIndex,
    int outputSize,
    bool done,
    out int inputUsed,
    out int outputUsed,
    out bool completed
)

Parameters

  • input
    Type: []

    A byte array containing the data to encode or decode.

  • inputIndex
    Type: System.Int32

    The zero-based byte offset in input at which to begin reading the data to encode or decode.

  • inputSize
    Type: System.Int32

    The maximum number of bytes to be read from input.

  • output
    Type: []

    A byte array that will contain the result of the encoding or decoding.

  • outputIndex
    Type: System.Int32

    The zero-based byte offset in output at which to begin writing the data to encode or decode.

  • outputSize
    Type: System.Int32

    The number of bytes to use in output.

  • done
    Type: System.Boolean

    Set flush to true if this is the last block of data to be encoded or decoded. Otherwise, set flush to false.

  • inputUsed
    Type: System.Int32

    The number of bytes actually read from input.

  • outputUsed
    Type: System.Int32

    The number of bytes actually written to output.

  • completed
    Type: System.Boolean

    A Boolean value indicating that all data has been successfully encoded or decoded. The completed parameter is set to true when either all of input is consumed but the data is not flushed, or the rest of input was flushed.

See also

Reference

ByteEncoder class

ByteEncoder members

Convert overload

Microsoft.Exchange.Data.Mime.Encoders namespace