public void GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) { char[] expectedChars = new char[byteCount]; for (int i = 0; i < byteCount; i++) { expectedChars[i] = (char)bytes[i + byteIndex]; } EncodingHelpers.GetChars(new ASCIIEncoding(), bytes, byteIndex, byteCount, chars, charIndex, expectedChars); }
public void GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int expected) { EncodingHelpers.GetChars(new UnicodeEncoding(), bytes, byteIndex, byteCount, chars, charIndex, expected); }
public void GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, char[] expectedChars) { EncodingHelpers.GetChars(new UTF8Encoding(), bytes, byteIndex, byteCount, chars, charIndex, expectedChars); }