From 9a2945f82637540a97fecbf505de6cdb63bcc74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 14 May 2021 16:01:46 +0200 Subject: [PATCH] doc: document buffer.kStringMaxLength PR-URL: https://github.com/nodejs/node/pull/38688 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Darshan Sen Reviewed-By: Colin Ihrig Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca --- doc/api/buffer.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 59acad972e6665..c0b4a99b540fe9 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -3170,6 +3170,15 @@ added: v3.0.0 An alias for [`buffer.constants.MAX_LENGTH`][]. +### `buffer.kStringMaxLength` + + +* {integer} The largest length allowed for a single `string` instance. + +An alias for [`buffer.constants.MAX_STRING_LENGTH`][]. + ### `buffer.transcode(source, fromEnc, toEnc)`