ToBase64Transform: TransformFinalBlock

TransformFinalBlock

Converts a specified region of byte array data to Base 64 byte array data.



 Public Function TransformFinalBlock(
	  ByRef InputBuffer ( ) As Byte,
	  ByVal InputOffset As Long,
	  ByVal InputCount As Long ) As Byte ( )

Parameters

InputBuffer
[ByRef] Byte. A byte array containing the data to be transformed.
InputOffset
[ByVal] Long. The starting position in the InputBuffer to begin transforming data.
InputCount
[ByVal] Long. The number of bytes to be transformed.

Return Values

Byte() -  A byte array containing data transformed to Base 64.

Remarks

The purpose of this method is to transform a block of data that is 0 to 3 bytes in length. This is to allow the end of an array to be transformed if the array length is not a multiple of 3.

The resulting array will always be 4 bytes in length. It is padded if less than 3 bytes is transformed. If zero bytes are transformed, then a zero-length array is returned, not a null array.

See Also

Project CorLib Overview

Class ToBase64Transform Overview