version 1.4, 2015/04/20 18:19:49
|
version 1.5, 2015/09/25 20:24:20
|
|
|
#include "types.h" | #include "types.h" |
#include <pal/strings.h> | #include <pal/strings.h> |
#include "miextras.h" | #include "miextras.h" |
|
#include <pal/intsafe.h> |
#include <pal/format.h> | #include <pal/format.h> |
#include <pal/file.h> | #include <pal/file.h> |
#include "helpers.h" | #include "helpers.h" |
|
|
| |
static void* _CloneSimpleArray( | static void* _CloneSimpleArray( |
const void* data, | const void* data, |
MI_Uint32 size, |
size_t size, |
MI_Uint32 type, | MI_Uint32 type, |
Batch* batch) | Batch* batch) |
{ | { |
|
|
| |
static void* _CloneInstanceArray( | static void* _CloneInstanceArray( |
const void* data_, | const void* data_, |
MI_Uint32 size, |
size_t size, |
Batch* batch) | Batch* batch) |
{ | { |
const MI_Instance** data = (const MI_Instance**)data_; | const MI_Instance** data = (const MI_Instance**)data_; |
MI_Instance** array; | MI_Instance** array; |
MI_Uint32 i; |
size_t i; |
| |
/* Handle empty arrays up front */ | /* Handle empty arrays up front */ |
if (!data || size == 0) | if (!data || size == 0) |