From 3b1a9936a8d193c7cb314f243fafea1ef7682738 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 6bd89920fe603c..dd965bbf226194 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -3347,6 +3347,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)`