Google APIs Client Library for C++
|
Provdes a codec for encoding and decoding reader streams using Base64. More...
#include "client/data/base64_codec.h"
Public Member Functions | |
Base64Codec (int chunk_size, bool websafe) | |
Standard constructor. | |
virtual | ~Base64Codec () |
Standard destructor. | |
virtual DataReader * | NewManagedEncodingReader (DataReader *reader, Closure *deleter, util::Status *status) |
Returns a reader that will encode another reader using this codec. | |
virtual DataReader * | NewManagedDecodingReader (DataReader *reader, Closure *deleter, util::Status *status) |
Returns a reader that will decode another reader using this codec. |
Provdes a codec for encoding and decoding reader streams using Base64.
Base64 is specified in http://tools.ietf.org/html/rfc4648
Base64Codec | ( | int | chunk_size, |
bool | websafe | ||
) |
Standard constructor.
param[in] chunk_size The desired chunk size to use when encoding / decoding streams might be adjusted slightly internally for comaptability with base-64. param[in] websafe If true then use the websafe base64 encoding.
virtual ~Base64Codec | ( | ) | [virtual] |
Standard destructor.
virtual DataReader* NewManagedDecodingReader | ( | DataReader * | reader, |
Closure * | deleter, | ||
util::Status * | status | ||
) | [virtual] |
Returns a reader that will decode another reader using this codec.
[in] | reader | The caller maintain ownership. |
[in] | deleter | The managed deleter may be used to delete the reader. NULL indicates an unmanaged reader. |
[out] | status | Will indicate ok or reason for failure. |
Implements Codec.
virtual DataReader* NewManagedEncodingReader | ( | DataReader * | reader, |
Closure * | deleter, | ||
util::Status * | status | ||
) | [virtual] |
Returns a reader that will encode another reader using this codec.
[in] | reader | The caller maintain ownership. |
[in] | deleter | The managed deleter may be used to delete the reader. NULL indicates an unmanaged reader. |
[out] | status | Will indicate ok or reason for failure. |
Implements Codec.