new Buffer(size)


稳定性: 0 - 已弃用:请改用 Buffer.alloc()(另请参见 Buffer.allocUnsafe())。

  • size <integer>Buffer 的期望长度。

参见 Buffer.alloc()Buffer.allocUnsafe()。这种构造函数的变体等同于 Buffer.alloc()

【See Buffer.alloc() and Buffer.allocUnsafe(). This variant of the constructor is equivalent to Buffer.alloc().】