1 | // Licensed to the .NET Foundation under one or more agreements. |
---|---|
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | #include <xplatform.h> |
6 | |
7 | extern "C"DLL_EXPORT BOOL STDMETHODCALLTYPE Marshal_InOut(int expected[], int actual[], int numElements, int newValue[]) |
8 | { |
9 | bool correctPassedIn = memcmp(expected, actual, numElements * sizeof(int)) == 0; |
10 | |
11 | memcpy(actual, newValue, numElements * sizeof(int)); |
12 | |
13 | return correctPassedIn ? TRUE : FALSE; |
14 | } |
15 | |
16 | extern "C"DLL_EXPORT BOOL STDMETHODCALLTYPE Marshal_Invalid(void* invalid) |
17 | { |
18 | return FALSE; |
19 | } |
20 |