11#ifndef vtkBase64OutputStream_h
12#define vtkBase64OutputStream_h
14#include "vtkIOCoreModule.h"
17VTK_ABI_NAMESPACE_BEGIN
35 int Write(
void const* data,
size_t length)
override;
51 unsigned char Buffer[2];
54 int EncodeTriplet(
unsigned char c0,
unsigned char c1,
unsigned char c2);
Writes base64-encoded output to a stream.
int StartWriting() override
Called after the stream position has been set by the caller, but before any Write calls.
int Write(void const *data, size_t length) override
Write output data of the given length.
static vtkBase64OutputStream * New()
~vtkBase64OutputStream() override
int EndWriting() override
Called after all desired calls to Write have been made.
int EncodeEnding(unsigned char c0, unsigned char c1)
unsigned int BufferLength
int EncodeEnding(unsigned char c0)
int EncodeTriplet(unsigned char c0, unsigned char c1, unsigned char c2)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Wraps a binary output stream with a VTK interface.