From 58b78fa2654959cf19a63773762697948abafafc Mon Sep 17 00:00:00 2001 From: Gargaj Date: Fri, 8 Aug 2014 13:10:05 +0200 Subject: [PATCH] comment --- code/AssbinExporter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/AssbinExporter.cpp b/code/AssbinExporter.cpp index 1c697b7e2..29ebfeee7 100644 --- a/code/AssbinExporter.cpp +++ b/code/AssbinExporter.cpp @@ -207,6 +207,8 @@ inline size_t WriteBounds(IOStream * stream, const T* in, unsigned int size) return t + Write(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 inline size_t WriteArray(IOStream * stream, const T* in, unsigned int size) {