From 5864fca7bc96ba701558f2b641c1e4cd1640f9f5 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. 😊 PR-URL: https://github.com/nodejs/node/pull/34729 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott --- 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));