Skip to content

WIP: new externalterm API #1672

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/libAtomVM/externalterm.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,6 @@ term externalterm_from_binary(Context *ctx, term binary, size_t *bytes_read);
*/
term externalterm_from_binary_with_roots(Context *ctx, size_t binary_ix, size_t offset, size_t *bytes_read, size_t num_roots, term *roots);

/**
* @brief Gets a term from a const literal (module in flash).
*
* @details Deserialize an external term from external format and returns a
* term. Use a heap fragment to store the generated terms. The heap fragment
* is appended to the context heap. Atoms and binaries are not copied.
* @param external_term the const literal buffer that will be deserialized
* @param size to allocate for term.
* @param ctx the context that owns the memory that will be allocated.
* @returns a term.
*/
term externalterm_from_const_literal(const void *external_term, size_t size, Context *ctx);

/**
* @brief Create a binary from a term.
*
Expand Down
Loading