Copies as much text from the beginning of source to buff as latter can hold performing conversion to different unicode transformation format if needed.
source will be set to its uncopied slice.
Slice of the provided buffer buff with a (parital) copy of source.
import std.array: empty; const(char)[] buff = ...; wchar[n] wbuff = void; while(!buff.empty) f(buff.copySomeEncoded(wbuff)); // `f` accepts at most `n` wide characters
See Implementation
Copies as much text from the beginning of source to buff as latter can hold performing conversion to different unicode transformation format if needed.
source will be set to its uncopied slice.