5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2005 Novell, Inc. http://www.novell.com
9 // Used for testing custom encoding.
16 using NUnit.Framework;
18 namespace MonoTests.System.Text
20 internal class MyEncoding : Encoding
26 public MyEncoding (int codepage)
31 public override int GetByteCount (char [] chars, int index, int count)
36 public override int GetBytes (char [] chars, int charIndex, int charCount, byte [] bytes, int byteIndex)
41 public override int GetCharCount (byte [] bytes, int index, int count)
46 public override int GetChars (byte [] bytes, int byteIndex, int byteCount, char [] chars, int charIndex)
51 public override int GetMaxByteCount (int length)
56 public override int GetMaxCharCount (int length)