node:buffer 模块 API


虽然 Buffer 对象可作为全局对象使用,但还有其他与 Buffer 相关的 API 仅可通过使用 require('node:buffer') 访问的 node:buffer 模块使用。

While, the Buffer object is available as a global, there are additional Buffer-related APIs that are available only via the node:buffer module accessed using require('node:buffer').