using System.Runtime.InteropServices;
[Serializable]
+#if NET_2_0
+[ComVisible (true)]
+#endif
public abstract class Decoder
{
DecoderFallback fallback = new DecoderReplacementFallback ();
DecoderFallbackBuffer fallback_buffer;
+ [ComVisible (false)]
public DecoderFallback Fallback {
get { return fallback; }
set {
}
}
+ [ComVisible (false)]
public DecoderFallbackBuffer FallbackBuffer {
get {
if (fallback_buffer == null)
char[] chars, int charIndex);
#if NET_2_0
+ [ComVisible (false)]
public virtual int GetCharCount (byte [] bytes, int index, int count, bool flush)
{
if (flush)
}
[CLSCompliant (false)]
+ [ComVisible (false)]
public unsafe virtual int GetCharCount (byte* bytes, int count, bool flush)
{
if (bytes == null)
}
[CLSCompliant (false)]
+ [ComVisible (false)]
public unsafe virtual int GetChars (byte* bytes, int byteCount,
char* chars, int charCount, bool flush)
{
return GetChars (barr, 0, byteCount, carr, 0, flush);
}
+ [ComVisible (false)]
public virtual void Reset ()
{
if (fallback_buffer != null)
}
[CLSCompliant (false)]
+ [ComVisible (false)]
public unsafe virtual void Convert (
byte* bytes, int byteCount,
char* chars, int charCount, bool flush,
charsUsed = GetChars (bytes, bytesUsed, chars, charCount, flush);
}
+ [ComVisible (false)]
public virtual void Convert (
byte [] bytes, int byteIndex, int byteCount,
char [] chars, int charIndex, int charCount, bool flush,