Hunny Software Library Reference

Base64EncoderW.EncodeSegment Method 

Encodes data from the input buffer to the output buffer.

[Visual Basic]
Public Sub EncodeSegment( _
   ByVal inBuf As ByteBuffer, _
   ByVal outBuf As CharBuffer _
)
[C#]
public void EncodeSegment(
   ByteBuffer inBuf,
   CharBuffer outBuf
);

Parameters

inBuf
The input buffer.
outBuf
The output buffer.

Remarks

This method is an essential part of the low-level interface and performs most of the work of encoding for the Base64EncoderW class. It takes an input buffer and an output buffer as parameters, and encodes data from the input buffer until the input buffer is empty or the output buffer is full. In other words, one of the following conditions is guaranteed to be satisfied when the method returns:

You may call the method multiple times to encode multiple buffers of input data. However, before you call the method, both of the following conditions should be true:

For more information on using the low-level interface, see the overview section for Base64Encoder.

See Also

Base64EncoderW Class | Hunny.Mime Namespace