From 9d07217d2c7ebbf596efce55315218d3c2049f19 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 79c35087755daf..a80f30a1ad6977 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1705,6 +1705,9 @@ console.log(buf.readIntLE(0, 6).toString(16));