pull/328/head
Gargaj 2014-08-08 13:10:05 +02:00
parent fa99aa0d3a
commit 58b78fa265
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ inline size_t WriteBounds(IOStream * stream, const T* in, unsigned int size)
return t + Write<T>(stream,maxc);
}
// We use this to write out non-byte arrays so that we write using the specializations.
// This way we avoid writing out extra bytes that potentially come from struct alignment.
template <typename T>
inline size_t WriteArray(IOStream * stream, const T* in, unsigned int size)
{