Introduce simple export test for assbin.

This commit is contained in:
Kim Kulling
2018-09-10 22:42:24 +02:00
parent c25a2dfc22
commit 081365df48
2 changed files with 17 additions and 6 deletions

View File

@@ -188,13 +188,17 @@ aiQuatKey Read<aiQuatKey>(IOStream * stream)
}
template <typename T>
void ReadArray(IOStream * stream, T * out, unsigned int size)
{
for (unsigned int i=0; i<size; i++) out[i] = Read<T>(stream);
void ReadArray( IOStream *stream, T * out, unsigned int size) {
ai_assert( nullptr != stream );
ai_assert( nullptr != out );
for (unsigned int i=0; i<size; i++) {
out[i] = Read<T>(stream);
}
}
template <typename T> void ReadBounds( IOStream * stream, T* /*p*/, unsigned int n )
{
template <typename T>
void ReadBounds( IOStream * stream, T* /*p*/, unsigned int n ) {
// not sure what to do here, the data isn't really useful.
stream->Seek( sizeof(T) * n, aiOrigin_CUR );
}