cleanup MaterialChunkType.h

This commit is contained in:
Mathias Agopian
2019-03-05 17:04:54 -08:00
committed by Mathias Agopian
parent 0f6f53d501
commit 4abe017bc5
2 changed files with 14 additions and 28 deletions

View File

@@ -597,6 +597,17 @@ static bool printParametersInfo(ChunkContainer container) {
return true;
}
// Unpack a 64 bit integer into a std::string
inline utils::CString typeToString(uint64_t v) {
uint8_t* raw = (uint8_t*) &v;
char str[9];
for (size_t i = 0; i < 8; i++) {
str[7 - i] = raw[i];
}
str[8] = '\0';
return utils::CString(str, 7);
}
static void printChunks(const ChunkContainer& container) {
std::cout << "Chunks:" << std::endl;