Buffer.copyDeep

Create a copy of the given buffer. This will make a newly allocated copy of the data the source buffer contains.

class Buffer
copyDeep
()

Return Value

Type: Buffer

a new copy of @buf.

Meta