Skip to content

Pass a big c# object to JS #26

@DrEight

Description

@DrEight

I'm passing to JS a big c# object using RegisterProxyConverter. I've tried also to to use RegisterStructConverter, but the problem is always the same: the process is slow because, practically I have to describe the methods and properties to JS and it take time for large objects.
Looking to the source code I notice that RegisterProxyConverter uses the API 'JSCreateExternalObject' with the first argument set to null. ( the object pointer ).
Is any way to pass the c# object pointer using the API 'JSCreateExternalObject' and use it ?
I've seen this example https://github.com/robertlong/ChakraLogExample/tree/master/ChakraLogExample where a class is passed to JS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions