Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICryptoTransform::TransformFinalBlock Method (array<Byte>^, Int32, Int32)

 

Transforms the specified region of the specified byte array.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

array<unsigned char>^ TransformFinalBlock(
	array<unsigned char>^ inputBuffer,
	int inputOffset,
	int inputCount
)

Parameters

inputBuffer
Type: array<System::Byte>^

The input for which to compute the transform.

inputOffset
Type: System::Int32

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

inputCount
Type: System::Int32

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

Return Value

Type: array<System::Byte>^

The computed transform.

TransformFinalBlock is a special function for transforming the last block or a partial block in the stream. It returns a new array that contains the remaining transformed bytes. A new array is returned, because the amount of information returned at the end might be larger than a single block when padding is added.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft