/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// If content length is unknown, then we must guess. In this case, we assume // the stream can tell us. If the stream is a pipe, then this will not work.
if (mContentLength < 0) {
uint64_t avail;
nsresult rv = mContentStream->Available(&avail); if (rv == NS_BASE_STREAM_CLOSED) { // This just means there's nothing in the stream
avail = 0;
} elseif (NS_FAILED(rv)) { return rv;
}
mContentLength = avail;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.