42#ifndef Foam_base64Layer_H
43#define Foam_base64Layer_H
64 unsigned char group_[3];
67 unsigned char groupLen_;
75 inline unsigned char encode0()
const noexcept;
76 inline unsigned char encode1()
const noexcept;
77 inline unsigned char encode2()
const noexcept;
78 inline unsigned char encode3()
const noexcept;
114 void write(
const char*
s, std::streamsize
n);
An output filter layer to write base-64 encoded content.
void add(char c)
Add a character to the group, outputting when the group is full.
bool close()
End the encoding sequence, padding the final characters with '='.
void operator=(const base64Layer &)=delete
No copy assignment.
base64Layer(const base64Layer &)=delete
No copy construct.
~base64Layer()
Destructor. Performs close()
static std::size_t encodedLength(std::size_t n)
The encoded length has 4 bytes out for every 3 bytes in.
void reset()
Restart a new encoding sequence.
OBJstream os(runTime.globalPath()/outputName)
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))