Add explicit read head seek to the start of the binpack file. Otherwise on MACOS the read head is placed at the end when app is specified.

This commit is contained in:
Tomasz Sobczyk
2020-11-13 10:56:52 +01:00
committed by nodchip
parent 2a8576b804
commit a71623f74c

View File

@@ -6717,6 +6717,9 @@ namespace binpack
m_path(std::move(path)),
m_file(m_path, std::ios_base::binary | std::ios_base::in | std::ios_base::out | om)
{
// Necessary for MAC because app mode makes it put the reading
// head at the end.
m_file.seekg(0);
}
void append(const char* data, std::uint32_t size)