61 processBytes(data, len);
69 processBytes(
str, std::char_traits<char>::length(
str));
76 processBytes(
str.data(),
str.length());
82 const std::string& str,
87 if (std::string::npos !=
pos &&
pos < str.length())
89 if (std::string::npos == len ||
pos + len > str.length())
91 len = str.length() -
pos;
94 processBytes(str.data() +
pos, len);
123 return digest().str(prefixed);
129 return digest().
write(
os, prefixed);
149 return this->
digest() == dig;
155 return this->
digest() == hexdigits;
161 return this->
digest() == hexdigits;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Functions to compute SHA1 message digest according to the NIST specification FIPS-180-1.
void clear() noexcept
Reset the hashed data before appending more.
bool finalize()
Finalized the calculations (normally not needed directly).
bool operator!=(const SHA1 &) const
Inequality operator, compares digests.
std::string str(const bool prefixed=false) const
The digest (40-byte) text representation, optionally with '_' prefix.
void append(char c)
Append single character.
Ostream & write(Ostream &os, const bool prefixed=false) const
Write digest (40-byte) representation, optionally with '_' prefix.
bool operator==(const SHA1 &rhs) const
Equality operator, compares digests.
SHA1Digest digest() const
Calculate digest from current data.
OBJstream os(runTime.globalPath()/outputName)
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
dimensionedScalar pos(const dimensionedScalar &ds)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)