public static char[] UnsafeGetInternalBuffer(TextSnapshot snap) { return snap.textBuffer; } public char[] Copy(int index, int length)