Your Search Results


    « XPCOM API Reference


    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;


    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,