ToBase64Transform: 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 ( )
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.