/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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 you want to serialize an inputStream, please use SerializeIPCStream or // nsIInputStream directly. class InputStreamHelper { public: staticvoid SerializedComplexity(nsIInputStream* aInputStream,
uint32_t aMaxSize, uint32_t* aSizeUsed,
uint32_t* aPipes, uint32_t* aTransferables);
// These 2 methods allow to serialize an inputStream into InputStreamParams. // The manager is needed in case a stream needs to serialize itself as // IPCRemoteStream. // The stream serializes itself fully only if the resulting IPC message will // be smaller than |aMaxSize|. Otherwise, the stream serializes itself as a // DataPipe, and, its content will be sent to the other side of the IPC pipe // in chunks. The IPC message size is returned into |aSizeUsed|. staticvoid SerializeInputStream(nsIInputStream* aInputStream,
InputStreamParams& aParams,
uint32_t aMaxSize, uint32_t* aSizeUsed);
// When a stream wants to serialize itself as a DataPipe, it uses this method. staticvoid SerializeInputStreamAsPipe(nsIInputStream* aInputStream,
InputStreamParams& aParams);
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.