Bewerken

Delen via


ICryptoTransform.TransformBlock(Byte[], Int32, Int32, Byte[], Int32) Method

Definition

Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.

public:
 int TransformBlock(cli::array <System::Byte> ^ inputBuffer, int inputOffset, int inputCount, cli::array <System::Byte> ^ outputBuffer, int outputOffset);
public int TransformBlock (byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset);
abstract member TransformBlock : byte[] * int * int * byte[] * int -> int
Public Function TransformBlock (inputBuffer As Byte(), inputOffset As Integer, inputCount As Integer, outputBuffer As Byte(), outputOffset As Integer) As Integer

Parameters

inputBuffer
Byte[]

The input for which to compute the transform.

inputOffset
Int32

The offset into the input byte array from which to begin using data.

inputCount
Int32

The number of bytes in the input byte array to use as data.

outputBuffer
Byte[]

The output to which to write the transform.

outputOffset
Int32

The offset into the output byte array from which to begin writing data.

Returns

The number of bytes written.

Remarks

The return value of TransformBlock is the number of bytes returned to outputBuffer and is always less than or equal to OutputBlockSize. If CanTransformMultipleBlocks is true, then inputCount must be any positive multiple of InputBlockSize.

Applies to

See also