Update AnalyzeTrack

This commit is contained in:
Henrik Rydgård
2025-03-05 17:02:46 +01:00
parent 7e3e944e3b
commit 70543c0363
4 changed files with 39 additions and 32 deletions
+2 -2
View File
@@ -238,10 +238,10 @@ void SkipSpace(const char **ptr) {
}
}
void DataToHexString(const uint8_t *data, size_t size, std::string *output) {
void DataToHexString(const uint8_t *data, size_t size, std::string *output, bool lineBreaks) {
Buffer buffer;
for (size_t i = 0; i < size; i++) {
if (i && !(i & 15))
if (i && !(i & 15) && lineBreaks)
buffer.Printf("\n");
buffer.Printf("%02x ", data[i]);
}