From 5f154d0ae343bc59f4b77582f3d282361726c8e1 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 --- 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)`