Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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,