GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify napi_get_value_string_* for bufsize 0 · nodejs/node@290a5ab

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • n-api.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3689,6 +3689,8 @@ napi_status napi_get_value_string_latin1(napi_env env,
36893689
is returned in `result`.
36903690
* `[in] bufsize`: Size of the destination buffer. When this value is
36913691
insufficient, the returned string is truncated and null-terminated.
3692+
If this value is zero, then the string is not returned and no changes are done
3693+
to the buffer.
36923694
* `[out] result`: Number of bytes copied into the buffer, excluding the null
36933695
terminator.
36943696

@@ -3720,6 +3722,8 @@ napi_status napi_get_value_string_utf8(napi_env env,
37203722
returned in `result`.
37213723
* `[in] bufsize`: Size of the destination buffer. When this value is
37223724
insufficient, the returned string is truncated and null-terminated.
3725+
If this value is zero, then the string is not returned and no changes are done
3726+
to the buffer.
37233727
* `[out] result`: Number of bytes copied into the buffer, excluding the null
37243728
terminator.
37253729

@@ -3750,6 +3754,8 @@ napi_status napi_get_value_string_utf16(napi_env env,
37503754
null terminator is returned.
37513755
* `[in] bufsize`: Size of the destination buffer. When this value is
37523756
insufficient, the returned string is truncated and null-terminated.
3757+
If this value is zero, then the string is not returned and no changes are done
3758+
to the buffer.
37533759
* `[out] result`: Number of 2-byte code units copied into the buffer, excluding
37543760
the null terminator.
37553761

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.