Function gpa::detail::WriteBinaryDataFieldStr

Function Documentation

inline std::stringstream &gpa::detail::WriteBinaryDataFieldStr(std::stringstream &strStr, StrFmtFlags strFmtFlags, uint32_t tabCount, uint32_t tabSize, char const *fieldName, size_t size, uint8_t const *pData)

Writes a given binary field to a given std::stringstream.

Note

tabCount only has an effect if strFmtFlags has the GPA_STR_FMT_FORMATTED bit set

Note

tabSize only has an effect if strFmtFlags has the GPA_STR_FMT_FORMATTED bit set

Parameters
  • strStr -- [in] A reference to the std::stringstream to write to

  • strFmtFlags -- [in] A bit mask of flags controlling the resulting std::stringstream's formatting

  • tabCount -- [in] A reference to the tab count to begin the structure at

  • tabSize -- [in] The number of spaces to use for a tab

  • fieldName -- [in] A pointer to a null terminated C string containing the name of the field to write

  • size -- [in] The size in bytes of the binary data to write

  • pData -- [in] A pointer to the binary data to write