ibase64stream(3bobcat)

ibase64stream3bobcat

Std::istream performing base64 encoding and decoding

Usage

#include <bobcat/ibase64stream>
Linking option: -lbobcat

Overview

FBB::IBase64Stream objects may be used to base64 encode or decrypt information that is available on a separate std::istream.

The class IBase64Stream is a class template, using a FBB::CryptType template non-type parameter. Objects of the class FBB::IBase64Stream<FBB::ENCRYPT> base64 encode the information they receive, objects of the class FBB::IBase64Stream<FBB::DECRYPT> base64 decode the information they receive.

Namespace

FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.

Inherits from

FBB::IBase64Buf (private),
std::istream

Constructors

o

IBase64Stream<CryptType>(std::istream &in, size_t bufSize = 1000):
This constructor initializes a std::istream providing it with an FBB::IBase64Buf stream buffer. The IBase64Buf’s constructor receives all arguments that are passed to this constructor.

- IBase64Stream<ENCRYPT> objects perform base64 encoding;
- IBase64Stream<DECRYPT> objects perform base64 decoding;
- IBase64Stream<CryptType> objects obtain the bytes to encode or decode from std::istream &in;
- The internally used IFilterBuf is initialized with a buffer of size bufSize, using a lower bound of 100.

The constructor uses a configurable buffer size for reading. Characters that were read into the buffer but are not part of the actual base64 encoded data are unavailable after completing the base64 decrypting. If information beyond the base64 input block should remain available, then specify a buffer size of 1.

Copy and move constructors (and assignment operators) are not available.

Inherited members

Since the class uses public derivation from std::istream, all members of this class can be used.

Examples

#include <iostream>
#include <bobcat/ibase64stream>
using namespace std;
using namespace FBB;
int main()
{
    IBase64Stream<ENCRYPT> in(cin);
}

Files

bobcat/ibase64stream - defines the class interface

Bobcat project files

o

https://fbb-git.gitlab.io/bobcat/: gitlab project page;

Debian Bobcat project files:

o

libbobcat6: debian package containing the shared library, changelog and copyright note;

o

libbobcat-dev: debian package containing the static library, headers, manual pages, and developer info;

Bobcat

Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Bugs

None Reported.

Author

Frank B. Brokken ([email protected]).

From libbobcat-dev 6.07.01-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.