new Buffer(size)


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

¥Stability: 0 - Deprecated: Use Buffer.alloc() instead (also see Buffer.allocUnsafe()).

  • size <integer> 新的 Buffer 所需的长度。

    ¥size <integer> The desired length of the new Buffer.

参见 Buffer.alloc()Buffer.allocUnsafe()。构造函数的此变体等效于 Buffer.alloc()

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