DEP0158: buffer.slice(start, end)
类型:仅文档
🌐 Type: Documentation-only
此方法已被弃用,因为它与 Uint8Array.prototype.slice() 不兼容,而 Uint8Array.prototype.slice() 是 Buffer 的超类。
🌐 This method was deprecated because it is not compatible with
Uint8Array.prototype.slice(), which is a superclass of Buffer.
改用功能相同的buffer.subarray。
🌐 Use buffer.subarray which does the same thing instead.