Visit Mozilla.org

nsIInputStream:available

From MDC

« XPCOM API Reference

[edit] Summary

This method returns the number of bytes currently available for reading from the stream.

PRUint32 available();

[edit] Remarks

This method should not be used to determine the total size of a stream, even if the stream corresponds to a local file. Moreover, since a stream may make available more than 2^32 bytes of data, this method is incapable of expressing the entire size of the underlying data source.