Create a copy of the given buffer. This will also make a newly allocated copy of the data the source buffer contains.
a new copy of buf. [transfer full]
See Implementation
Create a copy of the given buffer. This will also make a newly allocated copy of the data the source buffer contains.