ICryptoTransform.TransformBlock(Byte[], Int32, Int32, Byte[], Int32) 方法
定义
转换输入字节数组的指定区域,并将所得到的转换复制到输出字节数组的指定区域。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
参数
- 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.
返回
写入的字节数The number of bytes written.
注解
的返回值 TransformBlock 是返回到 outputBuffer 并且始终小于或等于的字节数 OutputBlockSize 。The return value of TransformBlock is the number of bytes returned to outputBuffer and is always less than or equal to OutputBlockSize. 如果 CanTransformMultipleBlocks 为 true ,则 inputCount 必须为的任何正倍数 InputBlockSize 。If CanTransformMultipleBlocks is true, then inputCount must be any positive multiple of InputBlockSize.