DecoderFallbackBuffer

DecoderFallbackBuffer


Provides a buffer that allows a fallback handler to return an alternate string to a decoder when it cannot decode an input byte sequence.


Public:

Properties:

NameDescription
 Remaining (get) When implemented by a class, gets the number of characters in the current DecoderFallbackBuffer object that remain to be processed.  

Methods:

NameDescription
 Equals Determines whether the specified value passed in is equal to the current object.  
 Fallback When implemented by a class, prepares the fallback buffer to handle the specified input byte sequence.  
 GetHashCode Serves as the default hash function.  
 GetNextChar When implemented by a class, retrieves the next character in the fallback buffer.  
 MovePrevious When implemented by a class, causes the next call to the GetNextChar method to access the data buffer character position that is prior to the current character position.  
 Reset Initializes all data and state information pertaining to this fallback buffer.  
 ToString Returns a string that represents the current object.  

Remarks

An encoding defines a mapping between a Unicode character and an encoded sequence of bytes. A decoding operation, which converts an input byte sequence to an output character, fails if no mapping is defined for a particular byte sequence.

VBCorLib provides a failure handling mechanism, called a fallback, if a conversion cannot be performed. All decoder fallback handlers must implement the following:

See Also

Project CorLib Overview

Class DecoderFallbackBuffer Overview