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.