Skip to content

doc: add Buffer#subarray() and add note about Uint8Array#slice()

refs: https://github.com/nodejs/node/issues/28087

  • Added document for Buffer#subarray(); its content is just copied from #slice()
  • Changed document for Buffer#slice() because of its incompatibility with its superclass's method, and also added how to use Uint8Array.prototype.slice() to get a copy of slice
Checklist
  • [ ] make -j4 test (UNIX), or vcbuild test (Windows) passes
  • [ ] tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading