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 write(const char *s, std::streamsize n)
Encode the character sequence, writing when possible.
bool close()
End the encoding sequence, padding the final characters with '='.
base64Layer(const base64Layer &)=delete
No copy construct.
OBJstream os(runTime.globalPath()/outputName)
void add(char c)
Add a character to the group, outputting when the group is full.
void reset()
Restart a new encoding sequence.
const dimensionedScalar c
Speed of light in a vacuum.
void operator=(const base64Layer &)=delete
No copy assignment.
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))
static std::size_t encodedLength(std::size_t n)
The encoded length has 4 bytes out for every 3 bytes in.
~base64Layer()
Destructor. Performs close()