We want to help developers like you. Tell us about how you work: http://qsurvey.mozilla.com/s3/Developer-Audience-Survey-V2/?s=mdn

EndReading

« XPCOM API Reference

Summary

The EndReading function returns a const char_type pointer to the element just beyond the last element of the string's internal buffer.

 const char_type* EndReading() const;

Remarks

It is generally illegal to dereference the returned pointer, unless it is known that the string's internal buffer is null-terminated. The NS_CStringGetData function can be used to determine if a nsAString instance has null-terminated storage.

Example Code

See BeginReading for an example.

See Also

BeginReading, NS_CStringGetData, nsAString

Document Tags and Contributors

 Contributors to this page: Sheppy, Pmash
 Last updated by: Sheppy,