so I see Table has a get_pointer method. how would I round-trip it back into a table.
#718
Unanswered
walksanatora
asked this question in
Q&A
Replies: 1 comment
|
to_pointer() (the get_pointer you mean) is one-way here. Its own doc says there's no way to convert the pointer back to its original value, it's just for hashing/identity, so you can't rebuild a Table from that To hold a table and get it back, use the registry: For handing tables to C#, don't pass the raw pointer. Give C# an opaque handle (an int id, or a boxed RegistryKey) and resolve it back to the Table on the Rust side when C# calls in. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Or is that not something possible. and I should instead seek another method to basically pass tables from Rust into c#.
All reactions