1BSON_STRING_TRUNCATE(3) libbson BSON_STRING_TRUNCATE(3)
2
3
4
6 void
7 bson_string_truncate (bson_string_t *string, uint32_t len);
8
10 • string: A bson_string_t.
11
12 • len: The new length of the string, excluding the trailing \0.
13
15 Truncates the string so that it is len bytes in length. This must be
16 smaller or equal to the current length of the string.
17
18 A \0 byte will be placed where the end of the string occurs.
19
21 MongoDB, Inc
22
24 2017-present, MongoDB, Inc
25
26
27
28
291.25.1 Nov 08, 2023 BSON_STRING_TRUNCATE(3)