Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support marshaling for the paramarray and arglist. #68

Open
kekyo opened this issue Mar 9, 2019 · 0 comments
Open

Support marshaling for the paramarray and arglist. #68

kekyo opened this issue Mar 9, 2019 · 0 comments

Comments

@kekyo
Copy link
Owner

kekyo commented Mar 9, 2019

void Foo1(params object[] args);
void Foo2(__arglist args);

The paramarray will have to limitation, the max array element size limitation with hard-coded.
I`m thinking about how realize arguments like:

switch (pArray->get_Length)
{
    // Problem 1: Array argument has to realize the array size in interoperability.
    case 1:
        // Problem 2: If array element type is System.Object, we have to translate safe type of C language manner.
        // For example: the element value is boxed int32, before we have to unbox int32.
        Foo1(pArray->get_Item(0, System_Object));
        break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant