You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For routines involving the creation of arrays (e.g. for passing a map as an array of keys and values), we should either:
(a) have the user pass in the allocated array (so they'll need to call another API function to get the size of the array they should allocate). Then the user would be explicitly responsible for freeing the memory
(b) define a calling convention such that it's the user's responsibility to free the memory (can be through an API call) after they're done with it
This should clean up the memory model such that the context doesn't need to manage memory for the c-api
The text was updated successfully, but these errors were encountered:
For routines involving the creation of arrays (e.g. for passing a map as an array of keys and values), we should either:
This should clean up the memory model such that the context doesn't need to manage memory for the c-api
The text was updated successfully, but these errors were encountered: