Hunny Software Library Reference

Base64DecoderW.DecodeSegment Method 

Decodes data from the input buffer to the output buffer.

[Visual Basic]
Public Sub DecodeSegment( _
   ByVal inBuf As CharBuffer, _
   ByVal outBuf As ByteBuffer _
)
[C#]
public void DecodeSegment(
   CharBuffer inBuf,
   ByteBuffer 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 decoding for the Base64DecoderW class. It takes an input buffer and an output buffer as parameters, and decodes 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 decode 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 Base64Decoder.

Exceptions

Exception TypeCondition
DecodeException The decoder detects an error.

See Also

Base64DecoderW Class | Hunny.Mime Namespace