Function jscjs_sys::api::JSStringGetMaximumUTF8CStringSize [−][src]
pub unsafe extern "C" fn JSStringGetMaximumUTF8CStringSize(
string: JSStringRef
) -> usize
Expand description
@function @abstract Returns the maximum number of bytes a JavaScript string will take up if converted into a null-terminated UTF8 string. @param string The JSString whose maximum converted size (in bytes) you want to know. @result The maximum number of bytes that could be required to convert string into a null-terminated UTF8 string. The number of bytes that the conversion actually ends up requiring could be less than this, but never more.