Nektar++
|
Functions | |
std::string | GetCompressString (void) |
std::string | GetBitSizeStr (void) |
void | BinaryStrToBase64Str (std::string &compressedDataString, std::string &base64string) |
void | Base64StrToBinaryStr (std::string &base64string, std::string &compressedDataString) |
template<class T > | |
int | ZlibEncode (std::vector< T > &in, std::string &out) |
template<class T > | |
int | ZlibEncodeToBase64Str (std::vector< T > &in, std::string &out64) |
template<class T > | |
int | ZlibDecode (std::string &in, std::vector< T > &out) |
template<class T > | |
int | ZlibDecodeFromBase64Str (std::string &in64, std::vector< T > &out) |
void Nektar::LibUtilities::CompressData::Base64StrToBinaryStr | ( | std::string & | base64string, |
std::string & | compressedDataString | ||
) |
Convert a Base 64 string into a binary string
Convert a string containing base 64 (i.e. from xml file) into a binary string
Definition at line 129 of file CompressData.cpp.
Referenced by ZlibDecodeFromBase64Str().
void Nektar::LibUtilities::CompressData::BinaryStrToBase64Str | ( | std::string & | compressedDataString, |
std::string & | base64string | ||
) |
Convert a binary string to Base 64 string
Convert a string containing compressed binary (i.e. from deflate) into a base 64 string
Definition at line 102 of file CompressData.cpp.
Referenced by ZlibEncodeToBase64Str().
std::string Nektar::LibUtilities::CompressData::GetBitSizeStr | ( | void | ) |
Definition at line 94 of file CompressData.cpp.
Referenced by Nektar::LibUtilities::MeshPartition::OutputPartition(), Nektar::LibUtilities::FieldIOXml::v_Write(), Nektar::Utilities::OutputNekpp::WriteXmlCurves(), Nektar::Utilities::OutputNekpp::WriteXmlEdges(), Nektar::Utilities::OutputNekpp::WriteXmlElements(), Nektar::Utilities::OutputNekpp::WriteXmlFaces(), and Nektar::Utilities::OutputNekpp::WriteXmlNodes().
std::string Nektar::LibUtilities::CompressData::GetCompressString | ( | void | ) |
Return a string describing this compression and endianness
Definition at line 89 of file CompressData.cpp.
References Nektar::LibUtilities::Endianness(), and Nektar::LibUtilities::EndianTypeMap.
Referenced by Nektar::LibUtilities::FieldIOXml::ImportFieldData(), Nektar::LibUtilities::FieldIOXml::ImportFieldDefs(), Nektar::LibUtilities::MeshPartition::OutputPartition(), Nektar::SpatialDomains::MeshGraph::ReadCurves(), Nektar::SpatialDomains::MeshGraph3D::ReadEdges(), Nektar::SpatialDomains::MeshGraph2D::ReadEdges(), Nektar::SpatialDomains::MeshGraph1D::ReadElements(), Nektar::SpatialDomains::MeshGraph3D::ReadElements(), Nektar::SpatialDomains::MeshGraph2D::ReadElements(), Nektar::SpatialDomains::MeshGraph3D::ReadFaces(), Nektar::SpatialDomains::MeshGraph::ReadGeometry(), Nektar::LibUtilities::MeshPartition::ReadGeometry(), Nektar::LibUtilities::FieldIOXml::v_Write(), Nektar::Utilities::OutputNekpp::WriteXmlCurves(), Nektar::Utilities::OutputNekpp::WriteXmlEdges(), Nektar::Utilities::OutputNekpp::WriteXmlElements(), Nektar::Utilities::OutputNekpp::WriteXmlFaces(), and Nektar::Utilities::OutputNekpp::WriteXmlNodes().
int Nektar::LibUtilities::CompressData::ZlibDecode | ( | std::string & | in, |
std::vector< T > & | out | ||
) |
Decompress a zlib-compressed string into a vector of NekDouble values.
Definition at line 168 of file CompressData.h.
References ASSERTL0, CHUNK, and Nektar::void.
Referenced by ZlibDecodeFromBase64Str().
int Nektar::LibUtilities::CompressData::ZlibDecodeFromBase64Str | ( | std::string & | in64, |
std::vector< T > & | out | ||
) |
Decompress a base 64 compressed binary string into a vector of NekDouble values.
Definition at line 243 of file CompressData.h.
References Base64StrToBinaryStr(), and ZlibDecode().
Referenced by Nektar::LibUtilities::FieldIOXml::ImportFieldData(), Nektar::SpatialDomains::MeshGraph::ReadCurves(), Nektar::SpatialDomains::MeshGraph3D::ReadEdges(), Nektar::SpatialDomains::MeshGraph2D::ReadEdges(), Nektar::SpatialDomains::MeshGraph1D::ReadElements(), Nektar::SpatialDomains::MeshGraph3D::ReadElements(), Nektar::SpatialDomains::MeshGraph2D::ReadElements(), Nektar::SpatialDomains::MeshGraph3D::ReadFaces(), Nektar::SpatialDomains::MeshGraph::ReadGeometry(), and Nektar::LibUtilities::MeshPartition::ReadGeometry().
int Nektar::LibUtilities::CompressData::ZlibEncode | ( | std::vector< T > & | in, |
std::string & | out | ||
) |
Compress a vector of NekDouble values into a string using zlib.
Definition at line 91 of file CompressData.h.
References ASSERTL0, CHUNK, and Nektar::void.
Referenced by ZlibEncodeToBase64Str().
int Nektar::LibUtilities::CompressData::ZlibEncodeToBase64Str | ( | std::vector< T > & | in, |
std::string & | out64 | ||
) |
Compress a vector of NekDouble values into a base64 string.
Definition at line 151 of file CompressData.h.
References BinaryStrToBase64Str(), and ZlibEncode().
Referenced by Nektar::LibUtilities::MeshPartition::OutputPartition(), Nektar::LibUtilities::FieldIOXml::v_Write(), Nektar::Utilities::OutputNekpp::WriteXmlCurves(), Nektar::Utilities::OutputNekpp::WriteXmlEdges(), Nektar::Utilities::OutputNekpp::WriteXmlElements(), Nektar::Utilities::OutputNekpp::WriteXmlFaces(), and Nektar::Utilities::OutputNekpp::WriteXmlNodes().