ToBase64Transform.TransformFinalBlock(Byte[], Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the specified region of the specified byte array to base 64.
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()
Parameters
- inputBuffer
- Byte[]
The input to convert to base 64.
- inputOffset
- Int32
The offset into the byte array from which to begin using data.
- inputCount
- Int32
The number of bytes in the byte array to use as data.
Returns
The computed base 64 conversion.
Implements
Exceptions
The current ToBase64Transform object has already been disposed.
The inputOffset
parameter contains an invalid offset length.
-or-
The inputCount
parameter contains an invalid value.
The inputBuffer
parameter is null
.
The inputCount
parameter requires a non-negative number and less than or equal to the length of inputBuffer
.
Examples
The following code example demonstrates how to call the TransformFinalBlock method to transform the final block of data. This code example is part of a larger example provided for the ToBase64Transform class.
outputBytes = base64Transform->TransformFinalBlock(
inputBytes,
inputOffset,
inputBytes->Length - inputOffset );
outputBytes = base64Transform.TransformFinalBlock(
inputBytes,
inputOffset,
inputBytes.Length - inputOffset);
outputBytes = base64Transform.TransformFinalBlock( _
inputBytes, _
inputOffset, _
inputBytes.Length - inputOffset)