michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_Base64_h__ michael@0: #define mozilla_Base64_h__ michael@0: michael@0: #include "nsString.h" michael@0: michael@0: class nsIInputStream; michael@0: michael@0: namespace mozilla { michael@0: michael@0: nsresult michael@0: Base64EncodeInputStream(nsIInputStream *aInputStream, michael@0: nsACString &aDest, michael@0: uint32_t aCount, michael@0: uint32_t aOffset = 0); michael@0: nsresult michael@0: Base64EncodeInputStream(nsIInputStream *aInputStream, michael@0: nsAString &aDest, michael@0: uint32_t aCount, michael@0: uint32_t aOffset = 0); michael@0: michael@0: nsresult michael@0: Base64Encode(const nsACString &aString, nsACString &aBinary); michael@0: nsresult michael@0: Base64Encode(const nsAString &aString, nsAString &aBinaryData); michael@0: michael@0: nsresult michael@0: Base64Decode(const nsACString &aBinaryData, nsACString &aString); michael@0: nsresult michael@0: Base64Decode(const nsAString &aBinaryData, nsAString &aString); michael@0: michael@0: } // namespace mozilla michael@0: michael@0: #endif