5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2005 Novell, Inc. http://www.novell.com
9 // Used for testing custom encoding.
17 using NUnit.Framework;
19 namespace MonoTests.System.Text
21 internal class MyEncoding : Encoding
27 public MyEncoding (int codepage)
32 public override int GetByteCount (char [] chars, int index, int count)
37 public override int GetBytes (char [] chars, int charIndex, int charCount, byte [] bytes, int byteIndex)
42 public override int GetCharCount (byte [] bytes, int index, int count)
47 public override int GetChars (byte [] bytes, int byteIndex, int byteCount, char [] chars, int charIndex)
52 public override int GetMaxByteCount (int length)
57 public override int GetMaxCharCount (int length)