23 #ifndef vtkBase64OutputStream_h 24 #define vtkBase64OutputStream_h 26 #include "vtkIOCoreModule.h" 46 int Write(
void const*
data,
size_t length) VTK_OVERRIDE;
54 int EndWriting() VTK_OVERRIDE;
61 unsigned int BufferLength;
62 unsigned char Buffer[2];
65 int EncodeTriplet(
unsigned char c0,
unsigned char c1,
unsigned char c2);
66 int EncodeEnding(
unsigned char c0,
unsigned char c1);
67 int EncodeEnding(
unsigned char c0);
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.
virtual int StartWriting()
Called after the stream position has been set by the caller, but before any Write calls...
static vtkOutputStream * New()
Writes base64-encoded output to a stream.