// Currently used only by assert statements private bool InitUTF16Results() { Utf16Result1 = new CharsRef(10); Utf16Result2 = new CharsRef(10); return true; }
/// <summary> /// Decompress the byte array previously returned by /// compressString back into a String /// </summary> public static string DecompressString(sbyte[] value, int offset, int length) { byte[] bytes = Decompress(value, offset, length); CharsRef result = new CharsRef(bytes.Length); UnicodeUtil.UTF8toUTF16((sbyte[])(Array)bytes, 0, bytes.Length, result); return new string(result.Chars, 0, result.length); }