new Buffer(buffer)
稳定性: 0 - 弃用: 改为使用
Buffer.from(buffer)
。buffer
<Buffer> | <Uint8Array> 要从中复制数据的现有Buffer
或Uint8Array
。
Stability: 0 - Deprecated: Use
Buffer.from(buffer)
instead.buffer
<Buffer> | <Uint8Array> An existingBuffer
orUint8Array
from which to copy data.
See Buffer.from(buffer)
.