<div dir="ltr"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>For the non-\0 terminated strings, you have the String-based
      MemorySegment::copy I described - e.g.</p>
    <pre lang=""><pre role="presentation"><span role="presentation" style="padding-right:0.1px">void copy(String srcString, Charset srcCharset, int srcIndex, MemorySegment dstSegment, long dstOffset, int length);</span></pre></pre>
    <p>With this, we also have two cases:</p>
    <p>* if the charset is compatible with the string buffer, we just
      bulk-copy the string buffer (or a portion of it) into the dest
      segment<br>
      * otherwise we can encode the srcString directly into the dest
      segment</p></div></blockquote><div>Thanks! I think I'm caught up now. My misunderstanding was whether MS::ofString was being suggested instead of and not in addition to the bulk copy.</div></div></div>