The underlying memory of returned Buffer instances is not initialized. Memory contents are unknown and may contain sensitive data.
When the size is less than half the pool size (specified on the Buffer constructor), memory is allocated from the Buffer pool for faster allocation of new Buffer instances.
Allocates a buffer having a specified number of bytes.
Notes
Buffer
instances is not initialized. Memory contents are unknown and may contain sensitive data.Buffer
constructor), memory is allocated from theBuffer
pool for faster allocation of newBuffer
instances.must provide a nonnegative integer