JS::GetDeflatedUTF8StringLength

This article needs a technical review. How you can help.

This article needs an editorial review. How you can help.

This article covers features introduced in SpiderMonkey 38

Returns the length of the char buffer required to encode given string as UTF8.

Syntax

size_t
GetDeflatedUTF8StringLength(JSFlatString* s);
Name Type Description
s JSFlatString * The pointer to the string to calculate the length.

Description

JS::GetDeflatedUTF8StringLength returns the length of the char buffer required to encode s as UTF8. The returned length does not include the null-terminator.

See Also

Document Tags and Contributors

 Contributors to this page: arai
 Last updated by: arai,