FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Non-allocating JavaScript object access by AnsisMalins · Pull Request #687 · ClearFoundry/ClearScript · GitHub

Non-allocating JavaScript object access - #687

Draft
AnsisMalins wants to merge 1 commit into
ClearFoundry:masterfrom
decentraland:v8object-dont-allocate
Draft

Non-allocating JavaScript object access#687
AnsisMalins wants to merge 1 commit into
ClearFoundry:masterfrom
decentraland:v8object-dont-allocate

Conversation

Copy link
Copy Markdown
Contributor

I already know you want me to somehow ensure that the struct does not escape the scope of the callback, so I'll work on that. But I'm sure there are other parts of this pull request you will have comments about. I'm unhappy about the V8Value.FastArgs, but I did not have better ideas so far.

Usage:

V8Object person = args.GetV8Object(0); // args is V8FastArgs
V8Value.FastArgs storage = default; // V8FastArg.pArg will point to this
string email = person.GetProperty("email", ref storage).GetString(); // GetProperty returns a V8FastArg
int age = person.GetProperty("age", ref storage).GetInteger();

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL