CryptoAPITransform.TransformFinalBlock(Byte[], Int32, Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したバイト配列の指定した領域の変換を計算します。
public:
virtual cli::array <System::Byte> ^ TransformFinalBlock(cli::array <System::Byte> ^ inputBuffer, int inputOffset, int inputCount);
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount);
abstract member TransformFinalBlock : byte[] * int * int -> byte[]
override this.TransformFinalBlock : byte[] * int * int -> byte[]
Public Function TransformFinalBlock (inputBuffer As Byte(), inputOffset As Integer, inputCount As Integer) As Byte()
パラメーター
- inputBuffer
- Byte[]
操作を実行する対象の入力。
- inputOffset
- Int32
データの使用を開始するバイト配列へのオフセット。
- inputCount
- Int32
データとして使用するバイト配列内のバイト数。
返品
計算された変換。
実装
例外
inputBuffer パラメーターはnull。
inputOffset パラメーターが 0 未満です。
-または-
inputCount パラメーターが 0 未満です。
-または-
入力バッファーの長さが、入力オフセットと入力カウントの合計より小さい。
PKCS7パディングが無効です。
inputOffset パラメーターが範囲外です。 このパラメーターには負以外の数値が必要です。
例
次のコード例では、 TransformFinalBlock メソッドを呼び出して最終的なバイト ブロックを変換する方法を示します。 このコード例は、 CryptoAPITransform クラスに提供されるより大きな例の一部です。
array<Byte>^finalBytes = cryptoTransform->TransformFinalBlock(
sourceBytes, currentPosition, sourceByteLength - currentPosition );
byte[] finalBytes = cryptoTransform.TransformFinalBlock(
sourceBytes,
currentPosition,
sourceByteLength - currentPosition);
Dim finalBytes() As Byte
finalBytes = cryptoTransform.TransformFinalBlock( _
sourceBytes, _
currentPosition, _
sourceByteLength - currentPosition)