Re: Why at an output from function?
The functions, which select the buffer not always are efficient.
For example c# cannot read this buffer. Here recently to fasten library with the interface to to a sharp - access to protected storages at attempt to read such line. And if to transfer the pointer to the buffer and its size - it is possible to fill all.