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 inputBuffer
parameter contains an invalid offset length.
-or-
The inputCount
parameter contains an invalid value.
The inputBuffer
parameter is null
.
The inputBuffer
parameter requires a non-negative number.
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)
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應