DecoderReplacementFallbackBuffer: Fallback

Fallback

Prepares the replacement fallback buffer to use the current replacement string.



 Public Function Fallback(
	  ByRef BytesUnknown ( ) As Byte,
	  ByVal Index As Long ) As Boolean

Parameters

BytesUnknown
[ByRef] Byte. An input byte sequence. This parameter is ignored unless an exception is thrown.
Index
[ByVal] Long. The index position of the byte in BytesUnknown. This parameter is ignored in this operation.

Return Values

Boolean -  True if the replacement string is not empty; False if the replacement string is empty.

Remarks

The GetBytes and Convert methods call Fallback if they encounter an unknown input byte sequence that cannot be decoded. If the return value of Fallback is True, the calling method can invoke the GetNextChar method to obtain each character of the fallback buffer.

Exceptions

Exception Condition
ArgumentExceptionThis method is called again before the GetNextChar method has read all the characters in the replacement fallback buffer.

See Also

Project CorLib Overview

Class DecoderReplacementFallbackBuffer Overview