ToBase64Transform::TransformFinalBlock Method (array<Byte>^, Int32, Int32)
.NET Framework (current version)
Converts the specified region of the specified byte array to base 64.
Assembly: mscorlib (in mscorlib.dll)
public: virtual array<unsigned char>^ TransformFinalBlock( array<unsigned char>^ inputBuffer, int inputOffset, int inputCount ) sealed
Parameters
- inputBuffer
-
Type:
array<System::Byte>^
The input to convert to base 64.
- 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.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The current ToBase64Transform object has already been disposed. |
| ArgumentException | The inputBuffer parameter contains an invalid offset length. -or- The inputCount parameter contains an invalid value. |
| ArgumentNullException | The inputBuffer parameter is null. |
| ArgumentOutOfRangeException | The inputBuffer parameter requires a non-negative number. |
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: