ToBase64Transform: TransformBlock

TransformBlock

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



 Public Function TransformBlock(
	  ByRef InputBuffer ( ) As Byte,
	  ByVal InputOffset As Long,
	  ByVal InputCount As Long,
	  ByRef OutputBuffer ( ) As Byte,
	  ByVal OutputOffset As Long ) As Long

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.
OutputBuffer
[ByRef] Byte. A byte array that received the transformed data.
OutputOffset
[ByVal] Long. The starting position in the OutputBuffer to begin placing transformed data.

Return Values

Long -  The number of bytes added to the OutputBuffer after the transformation.

Remarks

ToBase64Transform only operated on 3 bytes at a time, generating 4 bytes of output. If more than 3 bytes is needed to be transformed, then this method needs to be called multiple times.

See Also

Project CorLib Overview

Class ToBase64Transform Overview