We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

JS::GetDeflatedUTF8StringLength

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: bunnybooboo, arai
Last updated by: bunnybooboo,