From 34baaf96e87487ad768eba0d222b2eac24563842 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 11 Aug 2020 18:33:35 +0200 Subject: [PATCH] =?UTF-8?q?buffer:=20alias=20UInt=20=E2=9E=A1=EF=B8=8F=20U?= =?UTF-8?q?int=20in=20buffer=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s *so* hard to remember that it’s `UintXArray` but not `(write|read)UintX`. Let’s fix that by just providing aliases. 😊 --- doc/api/buffer.md | 42 ++++++++++++++++++++++++++ lib/internal/buffer.js | 14 +++++++++ test/parallel/test-buffer-writeuint.js | 9 ++++++ 3 files changed, 65 insertions(+) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 8cdb910b9f486d..50d1a97fff2167 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1709,6 +1709,9 @@ console.log(buf.readIntLE(0, 6).toString(16));