Bumping manifests a=b2g-bump
[gecko.git] / xpcom / io / nsScriptableBase64Encoder.cpp
blobef66aa5846372eb0bcbf140e818df9be171491b0
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsScriptableBase64Encoder.h"
8 #include "mozilla/Base64.h"
10 using namespace mozilla;
12 NS_IMPL_ISUPPORTS(nsScriptableBase64Encoder, nsIScriptableBase64Encoder)
14 /* ACString encodeToCString (in nsIInputStream stream, in unsigned long length); */
15 NS_IMETHODIMP
16 nsScriptableBase64Encoder::EncodeToCString(nsIInputStream* aStream,
17 uint32_t aLength,
18 nsACString& aResult)
20 Base64EncodeInputStream(aStream, aResult, aLength);
21 return NS_OK;
24 /* AString encodeToString (in nsIInputStream stream, in unsigned long length); */
25 NS_IMETHODIMP
26 nsScriptableBase64Encoder::EncodeToString(nsIInputStream* aStream,
27 uint32_t aLength,
28 nsAString& aResult)
30 Base64EncodeInputStream(aStream, aResult, aLength);
31 return NS_OK;