public static CharBuffer Wrap (string str) { CharBuffer buffer = new CharBuffer (); buffer.Wrapped = str; return buffer; } }